NinjaTrader 7 Indicators - True Slope Indicator V5

 Categories Show Search Help

 NinjaTrader 7 Indicators Indicators in this section are compatible with NinjaTrader 7

Entries
True Slope Indicator V5
After explicitly and laboriously adding various moving average types, linear regression, etc. to subsequent versions of my slope angle indicator, I finally realized that, in the indicator code, Input[0] refers to whatever price or indicator data series the user puts in the "Input series" field of the indicator parameters window. Duh. I reiterate: duh.

So, in this version (V5) I removed all the explicit options and changed the code to calculate using the Input series. Now, it'll simply use the values of whatever you put in the Input series field.

What it no longer will do, however, is allow you to measure the angle between High and Low or Median and Close or whatever. Now it'll just do High to High, Low to Low, etc. I may, in the future, add back the option to choose differing price values to start and end on, but you can still use V1 for that, if desired.
Or, if someone wants to merge the two versions, feel free. Just let me know so *I* can use it!

In the screen shot, you can see two instances of it. The upper plot shows the angle between Low[3] and Low[0]. The lower plot shows the angle between SMA(50)[3] and SMA(50)[0].

I drew the vertical lines to show that the plot crosses zero, meaning a perfectly flat slope, a little later than where the SMA slope is visually flat. That's due to the period of the measurement being 3 bars. A 1 bar period shows the zero slope much closer to its real location, but you tend to get a much choppier line. Another trade-off. Still, the indicator can be useful for measuring extreme slopes or generally flat periods, which was my original intent.

I do want to mention that any negative value means slope is downward. Likewise any positive value means slope is upwards. So, even where the slope curve is rising, if it's still below zero, the slope you're measuring is descending, just not as steeply.

I hope this indicator is of some greater use to the community than V1.