DivergentBars compares each price bar with the bar immediately before it. A lower low followed by a close in the upper half of the current bar gives a bull signal. A higher high followed by a close in the lower half gives a bear signal.
Show the signals on your chart
- On your NinjaTrader chart, press Ctrl+I.
- Under Available, expand ChartSpots and double-click DivergentBars.
- Under Configuration, select Bull Divergence, Bear Divergence, or both. Both are on by default.
- Leave Calculate set to On bar close. Select OK.
A separate panel appears below price. With the default plot colors, a dark cyan column marks a bull signal and a crimson column marks a bear signal. Both rise from zero to one. Read the color for direction and look straight up from the column to find the price bar.

Check a bar against its midpoint
Add the current bar’s high and low, then divide by two. For a bar with a high of 106 and a low of 98, the midpoint is 102.
- Bull Divergence. If the previous low was 99, the current low of 98 passes the lower-low test. A close at 103 is above 102, so the indicator plots a bull signal.
- Bear Divergence. If the previous high was 105, the current high of 106 passes the higher-high test. A close at 101 is below 102, so the indicator plots a bear signal.
A close exactly at 102 gives neither signal. An equal low fails the bull test, and an equal high fails the bear test. The opening price does not enter either calculation.