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)
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.