GL Swing Indicator
A TradingView overlay for Gann swing structure, pivot levels, and chart pattern detection.
Gann swings
Swing highs and lows from bar classification.
Pivot levels
Pivot levels, states, and 50% mids.
Chart patterns
Rectangles and triangles from pivots.
Pine Screener
Multi-symbol pattern scanning.
Up
Higher high and higher low than the previous bar.
Down
Lower high and lower low than the previous bar.
Inside
High and low contained within the previous bar.
Outside
Both a higher high and a lower low than the previous bar.
- 1 bar
- Most sensitive. Catches every minor swing (default).
- 2 bar
- Filters noise for intermediate swings.
- 3 bar
- Most filtered. Only major swings.
Display swings from a higher timeframe on your current chart, for example weekly swings on a daily chart.
- Real-time HTF
- Shows the developing higher-timeframe swing for live trading.
- Bar-close HTF
- Waits for the HTF bar to close. Better for backtesting without repaint.
Level tracking
Every confirmed pivot creates a horizontal level. Price interaction updates its state over time:
- Untouched levels stay untested
- Wick touches mark a level as tested
- Closes through a level flip it to support or resistance
Level states
Price has not touched the level yet. Highest-probability zone. Expect a reaction on first touch.
Price touched the level but has not closed through. Some liquidity absorbed; weaker than untested.
Price closed above a previous swing high. The level flipped from resistance to support.
Price closed below a previous swing low. The level flipped from support to resistance.
Dotted horizontal lines at the midpoint of recent swing legs. Price often retraces to the 50% level before continuing.
Useful for
- Pullback and retracement targets in a trend
- Continuation entry zones
- Confluence with pivot levels for stronger reactions
Flat upper and lower boundaries for range and consolidation.
Flat resistance with rising support. Bullish compression.
Falling resistance with flat support. Bearish compression.
When enabled
- Boundary lines with toucher markers on active patterns
- Top-right HUD with pattern type, age, and distance to nearest boundary
- Alerts for pattern formed and invalidated
- Four Pine Screener columns for multi-symbol scanning
GL Swing exposes four screener columns when chart patterns are enabled. Run separate scans per timeframe and swing bar count. Those settings apply globally to each screener pass.
Quick setup
- Open Pine Screener with GL Swing Indicator on your symbol list
- Set the chart timeframe to the TF you trade (e.g. Daily, 4H)
- Match Swing Bar Count and Swing Timeframe in Gann Swing Line settings
- Enable Chart Patterns in indicator settings
- Filter Pattern Active = 1, then sort by Pattern Nearest Boundary %
TradingView plan required
Pine Screener is a TradingView feature, not part of the indicator script itself. Per TradingView's requirements, it is only available on Premium and above. Lower tiers can still use the indicator on individual charts.
| Plan | Pine Screener |
|---|---|
| Basic | Not included |
| Essential | Not included |
| Plus | Not included |
| Premium | Included |
| Ultimate | Included |
Plan names and pricing can change. Confirm on TradingView pricing.
Screener columns
- Pattern Active
- 0 = none, 1 = valid active pattern
- Pattern Type
- 0 = none, 1 = rectangle, 2 = ascending, 3 = descending
- Pattern Age Bars
- Bars since the pattern formed
- Pattern Nearest Boundary %
- Distance from price to the nearest boundary line
GL Swing Indicator is published as an invite-only script on TradingView. DM guusl on TradingView to request access. Once granted, it appears under Invite-Only Scripts in your indicator menu.
- Open the script page and request access
- Add the indicator to any chart and market
- Start with 1-bar swing mode and enable levels to see pivot lines and 50% mids
- Turn on chart patterns when you want rectangle/triangle detection or screener columns
The indicator is in active development. DM on TradingView with bugs, feature requests, or feedback from live trading.