I need to convert my current indicators from StockCharts to NinjaTrader.
The code i use in stockcharts looks like this and simply plots a 55 period EMA and then an average of that initial EMA and 2nd MA to print the 3rd...
Variables: ma1(0), ma2(0), ma3(0);
ma1 = xAverage (close, periods);
ma2 = xAverage (ma1, periods);
ma3 = xAverage (ma2, periods);
plot1 (ma1, "ma1");
plot2 (ma2, "ma2");
plot3 (ma3, "ma3");
Thanks,
Mark
