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 SalmaTrader, 07-07-2026, 10:26 PM
0 responses
35 views
0 likes
Last Post SalmaTrader  
Started by CarlTrading, 07-05-2026, 01:16 PM
0 responses
20 views
0 likes
Last Post CarlTrading  
Started by CaptainJack, 06-17-2026, 10:32 AM
0 responses
13 views
0 likes
Last Post CaptainJack  
Started by kinfxhk, 06-17-2026, 04:15 AM
0 responses
19 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 06-17-2026, 04:06 AM
0 responses
22 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Working...
X