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)
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。