OPEN-SOURCE SCRIPT
FLEE Customizable Strong FVGs

In simple terms:
It’s a 3-candle pattern showing inefficiency.
Here’s the visual logic (assuming a bullish FVG):
Candle 1: a bearish or minor candle.
Candle 2: a large bullish candle (impulsive move).
Candle 3: another bullish or neutral candle.
The gap appears between the high of Candle 1 and the low of Candle 3.
That area often acts as a “magnet” later — price may return to “fill” it before resuming trend direction.
For bearish FVG, it’s the opposite:
The gap forms between the low of Candle 1 and the high of Candle 3 in a strong move down.
2. How an Indicator Detects FVGs
Most FVG indicators (such as in TradingView’s Pine Script) look for the 3-candle structure:
Bullish FVG condition:
Candle1.high < Candle3.low
Bearish FVG condition:
Candle1.low > Candle3.high
When this happens, the indicator shades or boxes that range (the gap) between those levels.
Many indicators will:
Highlight the area between the gap lines.
Delete the zone once it’s “filled” (price touches it again).
Allow customization (colors, timeframe, expiry logic, etc.)
3. Marking Strong FVG Zones
Not every FVG is equal — some are much stronger. “Strong zones” are usually defined by confluence and context.
Here’s how you can identify stronger ones:
A. Volume or Impulse Strength
Strong zones usually come after a powerful displacement candle — large body, small wicks, and maybe a volume spike.
That shows genuine institutional activity.
B. Higher Timeframe Origin
FVGs formed on H1, H4, or Daily charts carry more weight than those on M5 or M15.
C. Market Structure
Zones that align with:
Break of structure (BOS)
Order block origin are generally more reliable.
D. Unfilled Gaps
If the FVG has not been rebalanced yet, it’s still valid. Once price trades fully into that gap, it’s “filled” and loses power.
E. Multiple confluences
Combine FVG zones with:
Fibonacci retracement (e.g., gap within 50–61.8%)
Key support/resistance levels
Liquidity zones (equal highs/lows nearby)
It’s a 3-candle pattern showing inefficiency.
Here’s the visual logic (assuming a bullish FVG):
Candle 1: a bearish or minor candle.
Candle 2: a large bullish candle (impulsive move).
Candle 3: another bullish or neutral candle.
The gap appears between the high of Candle 1 and the low of Candle 3.
That area often acts as a “magnet” later — price may return to “fill” it before resuming trend direction.
For bearish FVG, it’s the opposite:
The gap forms between the low of Candle 1 and the high of Candle 3 in a strong move down.
2. How an Indicator Detects FVGs
Most FVG indicators (such as in TradingView’s Pine Script) look for the 3-candle structure:
Bullish FVG condition:
Candle1.high < Candle3.low
Bearish FVG condition:
Candle1.low > Candle3.high
When this happens, the indicator shades or boxes that range (the gap) between those levels.
Many indicators will:
Highlight the area between the gap lines.
Delete the zone once it’s “filled” (price touches it again).
Allow customization (colors, timeframe, expiry logic, etc.)
3. Marking Strong FVG Zones
Not every FVG is equal — some are much stronger. “Strong zones” are usually defined by confluence and context.
Here’s how you can identify stronger ones:
A. Volume or Impulse Strength
Strong zones usually come after a powerful displacement candle — large body, small wicks, and maybe a volume spike.
That shows genuine institutional activity.
B. Higher Timeframe Origin
FVGs formed on H1, H4, or Daily charts carry more weight than those on M5 or M15.
C. Market Structure
Zones that align with:
Break of structure (BOS)
Order block origin are generally more reliable.
D. Unfilled Gaps
If the FVG has not been rebalanced yet, it’s still valid. Once price trades fully into that gap, it’s “filled” and loses power.
E. Multiple confluences
Combine FVG zones with:
Fibonacci retracement (e.g., gap within 50–61.8%)
Key support/resistance levels
Liquidity zones (equal highs/lows nearby)
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.