PROTECTED SOURCE SCRIPT
[DEM] Fair Value Gaps

[DEM] Fair Value Gaps is designed to identify and visualize institutional Fair Value Gaps (FVGs) on the price chart by detecting three-candle patterns where a significant price gap exists between non-adjacent candles, indicating areas where price moved too quickly and left behind unfilled liquidity zones. The indicator identifies bullish FVGs when the current low exceeds the high from two bars ago by more than a configurable ATR multiplier (default 1.1), and bearish FVGs when the low from two bars ago exceeds the current high by the same threshold, ensuring only significant gaps are marked. When detected, the indicator draws semi-transparent boxes around the gap areas with midline references, colors the chart background green for bullish gaps and red for bearish gaps, and maintains these visual markers as potential support/resistance levels where institutional traders may look to fill orders, helping traders identify key price levels where future reversals or continuations might occur.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.