I've been trying to develop a divergence strategy using the stochastics indicator in NinjaTrader 8.
I've added the swing indicator in the same panel of my stochastic and set the input series of the swing indicator to use the stochastic %K plot instead of price.
I'm one step away from getting it to work properly.
The only thing is when instantiating the "Swing" indicator into my strategy code, it seems to be accessing the raw plot data points instead of the dotted plot data points as seen in the image.
The dotted plot data points are the actual swing high/low data points of the %K plot needed for my strategy to work.
Is there a way to access these dotted plot data points? Specifically the first dot of each swing high/low.
If anyone could share some advice or maybe refer me to some reference code on how to achieve this, it would be truly appreciated.
Thanks in advance.

Comment