OPEN-SOURCE SCRIPT
Fair Value Gaps

This indicator automatically detects and marks Fair Value Gaps (FVGs) on both the current chart timeframe and a user-selected higher timeframe. When a bullish or bearish gap forms, it draws a shaded box from the candle that created it and extends it forward until price fills the gap. You can choose whether filled gaps are removed from the chart or left in place for reference. The higher timeframe detection waits for the higher timeframe candle to close before plotting its gaps, ensuring accurate, non-repainting signals.
Customization options are straightforward: you can select the higher timeframe to monitor, toggle higher timeframe gap plotting on or off, and decide whether to automatically delete gaps once price has fully filled them. Bullish and bearish gaps are color-coded differently for both current and higher timeframes, making it easy to distinguish them at a glance. This provides a clear, real-time visual of unfilled imbalances in price for ICT traders.
Customization options are straightforward: you can select the higher timeframe to monitor, toggle higher timeframe gap plotting on or off, and decide whether to automatically delete gaps once price has fully filled them. Bullish and bearish gaps are color-coded differently for both current and higher timeframes, making it easy to distinguish them at a glance. This provides a clear, real-time visual of unfilled imbalances in price for ICT traders.
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.