Why amibroker dont support Moving average greater than 300?

Why amibroker dont support Moving average greater than 300? When I click on chart parameter and increase the period for MA it goes max to 300. Even when I have more than 2000 candles.

Amibroker does support ema’s greater than 300.

When you add EMA into charts, by default max parameter value is set to 300. Please update the max value to be 400 in param.

Periods = Param(“Periods”, 400, 2, 400, 1, 10 );

This should solve the issue.

Warm Regards,



(Authorized vendor of NSE supporting realtime data feeds to Amibroker,Metastock and Ninjatrader)

1 Like

You can use 1030 EMA also by changing the time frame as shown below 70/1030 EMA AFL code for Amibroker

_N(Title = StrFormat(“{{NAME}} – {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}”, O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, “Close”, ParamColor(“Color”, colorBlack ), styleNoTitle | ParamStyle(“Style”) | GetPriceStyle() );



Buy = Cross((EMA(Close,range1)),(EMA(Close,range2)));
Sell = Cross(EMA(Close,range2),(EMA(Close,range1)));
Short = Sell;
Cover = Buy;

// plot expanded average

Plot(EMA( Close,range1), “70min-ema”, colorRed );
Plot(EMA( Close,range2), “1030min-ema”, colorGreen );

// plot arrows
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );


USED Moving Average Crossovers in Amibroker : 206 EMA & 14 EMA
Charts Used : 5 min Charts

Not working I can use ma greater than 300 in afl for buy/sell signal. But in the default price chart when I edit formula n change. “Periods = Param(“Periods”, 400, 2, 400, 1, 10 );” it still shows 300 max in the slider.

once you put the parameters in the AFL, please go to charts, right click and set parameters to again 400.

1 Like