Contact support

Track gaps from the prior range or close

Use Gaps & Untested Levels to compare the session open with the previous session’s high, low or close. The two gap switches work independently. You can turn on both to see how much of the opening move lies outside the prior range.

Set the session and the comparison

  1. Open an intraday NinjaTrader chart. Press Ctrl+I. Under Available, open ChartSpots and double-click Gaps & Untested Levels. If it is already on the chart, select it under Configured.
  2. Under 1. Parameters, set Session Start Time and Session End Time using the chart clock. The defaults are 09:30:00 and 16:00:00. For an overnight session, enter a start later than the end, such as 18:00 to 05:00. The end then falls on the following date.
  3. Select Track Gaps (Open compared to prior range) to compare with the previous high or low. This is on by default. Select Track Gaps (Open compared to prior close) to compare with the previous close. This is off by default.
  4. Select OK. Load enough intraday history to include a previous session with data.
NinjaTrader session times set to 09:30 and 16:00, with the prior-range gap switch selected and the prior-close switch cleared.
The same session times supply the opening price and all three prior reference prices.

The indicator uses one-minute data. It includes bars stamped after the start time and up to and including the end time. With the default times and uninterrupted data, the open comes from the bar stamped 09:31 and the close from the bar stamped 16:00. Changing the visible chart interval does not change these comparisons.

Compare the same open two ways

Suppose the prior high was 105, the low was 95 and the close was 100. The next session opens at 107 and its first minute has a low of 106.

  • Prior range gives an upward gap from 105 to 107. The first minute trades down to 106, so the remaining shading runs from 105 to 106.
  • Prior close gives an upward gap from 100 to 107. After the same first minute, the remaining shading runs from 100 to 106.

If the first minute’s low touches 105, the range gap never starts. The close gap can still qualify because the low stayed above 100. For a downward gap, the opening minute must stay entirely below the prior low or prior close. An open inside the prior range can therefore produce a close gap.

Follow the remaining gap

An in-session low that enters an upward gap lowers its upper edge. A low at or below the reference price stops the rectangle at that bar. For a downward gap, an in-session high raises the lower edge until it reaches or exceeds the reference price. A completed rectangle remains on the historical chart. Outside-session bars do not shrink or end either gap.

A gray gap rectangle ends beside a rising ES candle on a fifteen-minute chart.
In this downward gap, the gray band stops where price returns to the reference. The indicator checks the one-minute bars inside each visible fifteen-minute candle.