Monday – Friday : 9:00 AM – 6:30 PM

EMA Super trend

The “EMA Super Trend” could imply an adaptation or enhancement of the Super Trend indicator that incorporates Exponential Moving Averages (EMAs) in its calculation methodology.  Creating an Amibroker AFL for the EMA Super Trend would involve modifying the Super Trend formula to integrate EMAs. Implementing this within Amibroker, with reliable data feed support, allows traders to gauge potential trend shifts or continuations based on this enhanced indicator.

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


fast = Optimize("fast EMA", 14,2,15,1);
med = Optimize("MED EMA", 15,2,15,1);
LONG = Optimize("LONG EMA", 27,2,50,1);

//Long = Optimize("long ema", 26,15,89,1);

Plot( MA( Close, fast ),"fast ema", colorYellow, styleThick ); 
Plot( EMA( Close, med ),"med ema", colorRed, styleThick ); 
Plot( EMA( Close, Long ),"long ema", colorBlue, styleThick ); 

//Buy = Cross (MA( Close, fast ), EMA( Close, Long )) OR Cross (MA( Close, fast ), EMA( Close, med )) ;
//Short=Cross (EMA( Close, Long ), MA( Close, fast )) OR Cross (EMA( Close, med ), MA( Close, fast ));
Buy = Cross (EMA( Close, MED ), EMA( Close, Long )) ;
Short=Cross (EMA( Close, Long ), MA( Close, MED ));

Sell = Cross (MA( Close, med ), EMA( Close, fast ));
Cover = Cross (MA( Close, fast ), EMA( Close, med )); 
PlotShapes (Buy*shapeUpTriangle,colorGreen);
PlotShapes (Short*shapeDownTriangle,colorRed); 
PlotShapes (Sell*shapeHollowCircle,colorGreen);
PlotShapes (Cover*shapeHollowCircle,colorRed); 

Open chat
Hi, how can I help you?