In the process of converting old NT7 files to NT8. One of them used SuperTrend from NT7, but I can't call the indicator the same way.
I imported the following SuperTrend indicator recoded for NT8. I imported everything in the zip file:
And this was the old code I used in Ninjatrader 7:
// All SuperTrend variables are set here ST_UpTrend_Signal = SuperTrend(14, 3, true).UpArrow[1]; ST_DownTrend_Signal = SuperTrend(14, 3, true).DownArrow[1]; ST_UpTrend_State = SuperTrend(14, 3, true).UpTrendState[1]; ST_UpTrend_State_Prev = SuperTrend(14, 3, true).UpTrendState[2]; ST_DownTrend_State = SuperTrend(14, 3, true).DownTrendState[1]; ST_DownTrend_State_Prev = SuperTrend(14, 3, true).DownTrendState[2];
Thanks in advance!
Comment