OPEN-SOURCE SCRIPT
已更新 FVG Mapper + Filter

HTF FVG Mapper — Multi-Timeframe Imbalance Projection
For some reason its not showing on the chart above, this site is a buggy mess sometimes, the UI is just the worst.
What the Script Does
How Fair Value Gaps Are Defined
This reflects displacement and temporary imbalance in auction delivery.
Important: FVGs are confirmed only after the selected HTF candle closes to prevent repainting.
Customisation Options
Intended Usage
This indicator is designed for traders who:
Typical Workflow
Important Context
It is not a mechanical strategy.
It is a multi-timeframe structural context tool designed to improve execution precision within higher-timeframe imbalance zones.
For some reason its not showing on the chart above, this site is a buggy mess sometimes, the UI is just the worst.
This script detects Fair Value Gaps (FVGs) on a selectable higher timeframe (HTF) and projects them onto lower timeframes (such as 1-minute) as extended zones. While commonly used with the 4-hour chart, the timeframe is fully customizable, allowing traders to map imbalances from any higher timeframe onto their execution chart.
What the Script Does
- Scans a user-defined higher timeframe using the classic 3-candle FVG model
- Identifies bullish and bearish imbalances (true displacement gaps)
- Allows full HTF selection (e.g., 1H, 4H, Daily, etc.)
- Filters out insignificant gaps using HTF ATR (optional size filter)
- Draws zones on the lower timeframe chart and extends them right
- Deletes zones once mitigated (if enabled)
- Limits the total number of active zones to reduce clutter
- Optionally removes zones far from current price
- Allows wick-based or body-based mitigation detection
How Fair Value Gaps Are Defined
- Bullish FVG → Low of candle 3 is greater than High of candle 1
- Bearish FVG → High of candle 3 is lower than Low of candle 1
This reflects displacement and temporary imbalance in auction delivery.
Important: FVGs are confirmed only after the selected HTF candle closes to prevent repainting.
Customisation Options
- Select the higher timeframe to scan (not restricted to 4H)
- Set maximum number of visible zones
- Enable/disable automatic deletion after mitigation
- Enable minimum size filtering using HTF ATR
- Adjust minimum gap size sensitivity
- Enable proximity filtering (show only zones near current price)
- Toggle wick-based vs body-based fill detection
- Adjust visual styling (colors, transparency)
Intended Usage
This indicator is designed for traders who:
- Trade lower timeframes but anchor bias to higher-timeframe structure
- Use HTF imbalances as reaction or continuation zones
- Look for confluence between liquidity sweeps and HTF inefficiencies
- Want structured multi-timeframe context without visual overload
Typical Workflow
- Select a higher timeframe aligned with your bias (e.g., 4H or Daily)
- Identify active imbalances on your execution timeframe
- Wait for price to approach an HTF FVG
- Drop to lower timeframe structure for confirmation
- Execute with defined invalidation beyond the zone
Important Context
- This indicator does not generate buy/sell signals
- It does not predict direction
- It visualizes higher-timeframe inefficiencies only
- Trade management and bias determination remain trader-dependent
It is a multi-timeframe structural context tool designed to improve execution precision within higher-timeframe imbalance zones.
版本注释
Update:- Instead of removing fvgs, fade them.
- Upon selected invalidation condition, stop extending, extend to the point where fvg has been invalidated.
版本注释
Close inside now will also count a closethrough开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。