The shaded rectangle marks the price interval between the first and third candles of a qualifying gap. For an upward gap, its lower edge is the first high and its upper edge is the third low. For a downward gap, its upper edge is the first low and its lower edge is the third high.
Show the midpoint and boundary prices
- On your NinjaTrader chart, press Ctrl+I. Select Fair Value Gaps under Configured.
- Under 1. Configuration, select Show Gap Midline to draw a line halfway between the edges. This setting is on by default.
- Select Show Price Labels to display the upper and lower prices beside each active gap. This setting is off by default. With both switches on, the midpoint also has a label. Select OK.

Adjust the shading, line or labels
Under 4. Plot Configuration, Gap Color controls the fill, which defaults to gray. Gap Opacity runs from 0 (clear) to 100 (opaque) and defaults to 50. Gap Outline Color controls the border separately and defaults to transparent. Expand Gap Midline Stroke to set its color, dash style and width. The default is a one-pixel dashed CadetBlue line.
Under 3. Labels, Price Label Font defaults to Arial, size 10, and Price Label Color defaults to gray. The indicator prints prices to two decimal places. Leave Label Spacing Factor at 0 to keep each label at its price. Increase it if neighboring labels overlap. The indicator can move a lower label down to make room. Its printed price and the gap boundary stay the same.

When the rectangle stops extending
Starting with the third candle, the indicator tracks the highest high and lowest low on the selected FVG timeframe. It ends the gap when the high has reached or exceeded the upper edge and the low has reached or fallen below the lower edge. Those prices can occur on different bars. A wick counts.
For example, an upward gap from 100.00 to 101.00 starts with the third candle’s low at 101.00. A later low of 100.50 touches the midpoint and leaves the gap active. A low of 100.00 fills it, even if that candle closes above 101.00. The rectangle and optional midline end at that bar and remain on the chart. Their price labels disappear.
