OPEN-SOURCE SCRIPT
HTF Fair Value Gap (FVG) Indicator

Automatically detects and plots Fair Value Gaps from the 1H, 4H, and Daily timeframes directly on any chart. A Fair Value Gap is a 3-candle imbalance where the wick of candle A and the wick of candle C do not overlap, leaving an unfilled gap in price. Bullish FVGs form when the high of candle A is below the low of candle C. Bearish FVGs form when the low of candle A is above the high of candle C.
Each FVG is drawn as a colored box spanning the gap zone with a dotted midline. When price trades back through a zone it becomes an Inverse Fair Value Gap (IFVG), changing color to indicate the shift in character. IFVGs can be toggled off to simply remove mitigated zones. All colors and borders are fully customizable. You can control how many FVGs per timeframe are displayed at once, keeping the chart clean regardless of what timeframe you are trading on.
Each FVG is drawn as a colored box spanning the gap zone with a dotted midline. When price trades back through a zone it becomes an Inverse Fair Value Gap (IFVG), changing color to indicate the shift in character. IFVGs can be toggled off to simply remove mitigated zones. All colors and borders are fully customizable. You can control how many FVGs per timeframe are displayed at once, keeping the chart clean regardless of what timeframe you are trading on.
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.