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,

Vivith

www.neotradeanalytics.com

(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

_SECTION_BEGIN(“Price”);
SetChartOptions(0,chartShowArrows|chartShowDates);
_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() );
_SECTION_END();

_SECTION_BEGIN(“EMA”);

Range1=Optimize(“range1″,14,1,20,1);
Range2=Optimize(“range2″,206,1,125,1);

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 ) );

_SECTION_END();

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.
Regards
Vivith
www.neotradeanalytics.com

1 Like

Get into edit of the average you are ploting on your chart
Periods = Param(“Periods”, 400, 2, 400, 1, 10 );”

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

Or any upto any length you wish and this 1represent change in steps this too can be any no