OPEN-SOURCE SCRIPT
Updated HTF FVG Scanner - Filtered

This script automatically identifies Fair Value Gaps (FVGs) — price inefficiencies — using a 3-candle pattern logic.
⚙️ How it works
Scans sequences of 3 consecutive candles to detect gaps between the first and the third candle
Highlights:
Bullish FVG when price leaves an imbalance to the upside
Bearish FVG when price leaves an imbalance to the downside
Draws FVGs as boxes extended forward until mitigation
📊 Multi-Timeframe
Supports FVG detection on multiple timeframes (e.g., H1, H4, Daily)
Displays higher timeframe FVGs on the current chart
Helps identify key liquidity zones
🎯 Filters & Customization
Minimum FVG size (to filter out weak signals)
Lookback range
Mitigation logic (partial or full)
Visual settings (colors, labels, box style)
🧠 Usage
FVGs represent areas where price moved too quickly, leaving an imbalance.
Price often revisits these zones to rebalance.
Not all FVGs are tradable — the most reliable ones align with market structure and liquidity.
⚙️ How it works
Scans sequences of 3 consecutive candles to detect gaps between the first and the third candle
Highlights:
Bullish FVG when price leaves an imbalance to the upside
Bearish FVG when price leaves an imbalance to the downside
Draws FVGs as boxes extended forward until mitigation
📊 Multi-Timeframe
Supports FVG detection on multiple timeframes (e.g., H1, H4, Daily)
Displays higher timeframe FVGs on the current chart
Helps identify key liquidity zones
🎯 Filters & Customization
Minimum FVG size (to filter out weak signals)
Lookback range
Mitigation logic (partial or full)
Visual settings (colors, labels, box style)
🧠 Usage
FVGs represent areas where price moved too quickly, leaving an imbalance.
Price often revisits these zones to rebalance.
Not all FVGs are tradable — the most reliable ones align with market structure and liquidity.
Release Notes
Fix bugRelease Notes
Aggiornato motore trigger di ingressoLock della FVG Primary
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.