OPEN-SOURCE SCRIPT
FVG Inverse (IFVG) All Timeframes

Tracks standard Fair Value Gaps (FVGs) and Inverse Fair Value Gaps (IFVGs) automatically on any chart timeframe.
The indicator detects bullish and bearish FVGs based on classic 3-candle imbalance structure, draws the zone with its Consequent Encroachment (CE) as a dotted midpoint line, and labels each setup clearly as BULL FVG or BEAR FVG.
When price fully closes through an opposing FVG, the zone automatically converts into an IFVG and is relabeled accordingly, helping traders quickly identify potential shifts in market structure and support/resistance flips.
Designed as a clean, strategy-neutral tool for all markets and timeframes, with customizable colors, opacity, and a simplified visual layout that keeps only the most recent zones on screen for clarity.
The indicator detects bullish and bearish FVGs based on classic 3-candle imbalance structure, draws the zone with its Consequent Encroachment (CE) as a dotted midpoint line, and labels each setup clearly as BULL FVG or BEAR FVG.
When price fully closes through an opposing FVG, the zone automatically converts into an IFVG and is relabeled accordingly, helping traders quickly identify potential shifts in market structure and support/resistance flips.
Designed as a clean, strategy-neutral tool for all markets and timeframes, with customizable colors, opacity, and a simplified visual layout that keeps only the most recent zones on screen for clarity.
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.