NinjaCoding @ NinjaTrader
Open in Telegram
546
Subscribers
+324 hours
+147 days
+3230 days
Posts Archive
Did you know super trend indicator is just an ATR trail?)) Stay tuned, code review coming!
So what I did, was, I initialized the series after I actually grabbed the values into it and this initialization overwrote the series. 1 hour of life debuging where are my values!
This is all you have to do but if you really want to you can also initialize the _signals object first in the OnStateChange method but that is really not required, nevertheless you can like this.
Today I would like to share 1 coding experience that killed me half a day) because I made this mistake!!! You know when you want to grab a few values from your indicator into your strategy, easy done right. So let's say you have an indicator that has a few plots and you want the other plot, say not the first one. If you want the first one then you can get it using the Indicator object but for the other ones you need to grab them using Series objects like this.
Swing number, swing size in points, swing peaks delta in points and swing volume
Did you know there are 2 different approached to calculating the plot slope angle in NinjaTrader. First one will use the slope values and the other one will use the visual Y coordinates. In the first case what you see is NOT what you get, whereas in the second one what you SEE is what you GET but if start scaling the angle changes!
