Fair Value Gaps 

Multi-Timeframe Imbalance Detection
Identify where price moved too fast - and where it's likely to return.

The Fair Value Gaps (FVG) indicator detects price imbalances across up to three independent timeframe sources simultaneously - chart/higher timeframe, a second chart/higher timeframe, and a lower intrabar timeframe - giving a complete picture of unfilled gaps at every degree of market structure.

What Is a Fair Value Gap
A Fair Value Gap forms when price moves so quickly in one direction that a three-candle sequence leaves an untouched price zone between the first and third candle. These imbalances represent areas where no two-sided trading occurred, and price frequently returns to them to seek liquidity or establish value.

Three Independent FVG Sources
Each of the three FVG layers is independently configurable with its own timeframe, fill method, zone colors, and label visibility:

Fill Methods
Each FVG source uses its own independently selected fill method to determine when a zone is considered repaired:

Active zones display real-time fill progress as a percentage, updating as price interacts with each imbalance.

LTF Significance Filter
The lower timeframe FVG layer includes an ATR-based significance filter. Gaps smaller than the defined threshold relative to the average true range are ignored, keeping the chart focused on meaningful imbalances and filtering out noise.

Zone Display
Each FVG zone is rendered with three boundary lines - top, midpoint (dotted), and bottom - plus a filled background for quick visual identification. Labels show the source timeframe and live fill progress. Hovering any zone reveals a tooltip with exact top, mid, and bottom prices.

Notes
Higher timeframe FVG sources automatically fall back to the chart timeframe if the selected HTF is not above the current chart period. The LTF source requires intrabar data access and processes sub-bar history at each chart bar close. Max Bars Back controls how far into history each source looks for gaps, helping manage performance on long chart histories.