GL Swing Indicator

A TradingView overlay for Gann swing structure, pivot levels, fair value gaps, and chart pattern detection.

What it does
Market structure, levels, and patterns in one overlay.

Gann swings

Swing highs and lows from bar classification.

Pivot levels

Pivot levels, states, and 50% mids.

Fair value gaps

3-bar wick imbalances with touch, fill, and inverse (IFVG) tracking.

Chart patterns

Rectangles and triangles from pivots.

Pine Screener

Multi-symbol pattern and FVG scanning.

How it works
Gann bar types drive swing direction on your chart.

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.

Swing modes
1, 2, or 3 bar confirmation.
1 bar
Most sensitive. Catches every minor swing (default).
2 bar
Filters noise for intermediate swings.
3 bar
Most filtered. Only major swings.
Higher timeframe overlay
See the bigger picture on any chart.

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.
Levels
Pivot levels, state tracking, and 50% swing midpoints on your chart.

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

UntestedSolid aqua

Price has not touched the level yet. Highest-probability zone. Expect a reaction on first touch.

TestedDotted aqua

Price touched the level but has not closed through. Some liquidity absorbed; weaker than untested.

SupportGreen

Price closed above a previous swing high. The level flipped from resistance to support.

ResistanceRed

Price closed below a previous swing low. The level flipped from support to resistance.

50% swing midsDotted white

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
Fair value gaps
3-bar wick imbalances on the Swing Timeframe: regular FVGs, filled gaps, and inverse IFVGs when polarity flips. No repaint.

A fair value gap is a 3-candle pattern: oldest candle on the left, displacement candle in the middle, newest candle on the right. The gap forms when the wicks of the oldest and newest candles do not overlap. Detection uses the same Swing Timeframe pipeline as swings and levels. For example, 4H gaps on a 15m chart when Swing Timeframe is 240.

Regular FVGs

Bullish FVGLime

The newest candle's low sits above the oldest candle's high. The gap is the empty zone between their wicks.

Bearish FVGRed

The newest candle's high sits below the oldest candle's low. The gap is the empty zone between their wicks.

FilledGray

Price traded through the far edge. Box stops extending and turns gray with a dotted border.

Inverse FVGs (IFVG)

When price closes through the far edge of a gap before a full wick fill, polarity inverts. The original zone is retained but redrawn with dashed borders and CE lines. Inversion is checked on confirmed swing-TF bar closes.

Bullish IFVGAqua

A bearish gap whose swing-TF close prints above the top edge. The zone flips polarity and is expected to act as support.

Bearish IFVGFuchsia

A bullish gap whose swing-TF close prints below the bottom edge. The zone flips polarity and is expected to act as resistance.

Gap lifecycle

Open
Gap formed but price has not revisited the zone yet.
Touched
Swing-TF wick entered the gap. Liquidity is being tested.
Filled
Wick traded through the far edge. Gap is fully mitigated.
Inverted
Swing-TF close broke through the far edge before a full wick fill. Gap polarity flips into an IFVG with dashed box and CE styling.

FVG display filter

Detection and fill tracking always run. FVG Display filters regular FVG boxes only. IFVG boxes are controlled separately via Detect Bullish/Bearish IFVG and Show IFVG Boxes:

All
Every stored regular FVG: open, touched, and filled.
Untouched Only
Open FVGs only. Default. Keeps the chart focused on fresh zones.
Unfilled Only
Open and touched FVGs. Hides fully filled boxes.
IFVG Only
Hides regular FVG boxes. Pair with Show IFVG Boxes to focus on inverted zones.

When enabled

  • Dotted FVG boxes from the oldest candle through the current bar (or fill bar)
  • Dashed IFVG boxes when polarity flips on a swing-TF close through the far edge
  • Optional CE line at the 50% midpoint: dotted for FVGs, dashed for IFVGs
  • Wick or body gap source, ATR-based minimum gap size, and nested-gap dedupe
  • Alerts for FVG formed, touched, and filled
  • Four Pine Screener columns: FVG Active, FVG CE Distance %, IFVG Active, IFVG CE Distance %
Chart pattern detection
Rectangles and triangles built from confirmed Gann swing pivots. Detection runs on confirmed bars only. No repaint.
RectangleYellow

Flat upper and lower boundaries for range and consolidation.

Ascending triangleLime

Flat resistance with rising support. Bullish compression.

Descending triangleOrange

Falling resistance with flat support. Bearish compression.

Unclassified / invalidGray

Patterns that fail validation rules. Shown at reduced opacity until invalidated.

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
Pine Screener
Scan your watchlist for active chart patterns and fair value gaps using GL Swing columns.

GL Swing exposes eight screener columns: four for chart patterns and four for fair value gaps (including IFVG). Enable the relevant feature groups in indicator settings. 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 and/or Fair Value Gaps depending on your scan
  • Filter Pattern Active = 1, FVG Active = 1, or IFVG Active = 1, then sort by distance columns

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.

PlanPine Screener
BasicNot included
EssentialNot included
PlusNot included
PremiumIncluded
UltimateIncluded

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
FVG Active
0 = none, 1 = at least one non-filled gap exists
FVG CE Distance %
Distance from close to the nearest active gap midpoint (CE)
IFVG Active
0 = none, 1 = at least one inverted gap exists
IFVG CE Distance %
Distance from close to the nearest inverted gap midpoint (CE)
TradingView
Invite-only script. Request access to add it to your charts.

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.

  1. Open the script page and request access
  2. Add the indicator to any chart and market
  3. Start with 1-bar swing mode and enable levels to see pivot lines and 50% mids
  4. Enable fair value gaps for 3-bar imbalance boxes and CE midpoint lines
  5. Turn on chart patterns when you want rectangle/triangle detection or pattern screener columns
View on TradingView

The indicator is in active development. DM on TradingView with bugs, feature requests, or feedback from live trading.

Charts & screenshots
Examples of pivot levels, fair value gaps, 50% mids, and pattern boundaries in action.