OPEN-SOURCE SCRIPT

Fair Value Gaps

371
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.

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.