Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving average of a moving average of a....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Moving average of a moving average of a....

    Hi Guys,

    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...

    Inputs: periods (55);

    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");
    Can someone point me in the right direction as to how i would script this in Ninja?

    Thanks,
    Mark

Latest Posts

Collapse

Topics Statistics Last Post
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
164 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
319 views
0 likes
Last Post CaptainJack  
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
246 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
350 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
179 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Working...
X