3/8 EMA CROSSOVER for Amibroker (AFL)
RIAZ almost 15 years ago Amibroker (AFL)
ITS A 3/8 EMA CROSSOVER INDICATING BUY AND SELL
Indicator / Formula
Copy & Paste Friendly
_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_crossover");
x = EMA(Close,3);
y = EMA(Close,8);
Plot(EMA(Close,3),"",colorRed,styleLine);
Plot(EMA(Close,8),"",colorDarkGreen,styleLine);
Buy=Cross(x,y);
PlotShapes(shapeUpArrow*Buy,colorGreen);
XR=(EMA(Close,3) * (2 / 6 - 1) - EMA(Close,8) * (2 / 11 - 1)) / (2 / 6 - 2 / 11);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"3/8 EMA " +EncodeColor( colorRed )
+ " O " + O + " H " + H + " L " + L + " C "+ C + "\n";
Sell=Cross(y,x);
PlotShapes(shapeDownArrow*Sell,colorRed);
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );
XR=(EMA(Close,8) * (2 / 6 - 1) - EMA(Close,3) * (2 / 11 - 1)) / (2 / 6 - 2 / 11);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"3/8 EMA " +EncodeColor( colorRed )
+ " O " + O + " H " + H + " L " + L + " C "+ C + "\n";
_SECTION_END();4 comments
Leave Comment
Please login here to leave a comment.
Is the alert applicable to the current open chart only sir?
Is it possible that it will continue to scan every 5mins then pop ups with different stocks that crosses EMA3/8?
Yes, currently open chart only but you can also use the auto repeat option when using the formula in the automatic analysis window to run a scan at a predefined interval.
How can I use this for detecting Crossover in 4H ? Tks
How can I use this for detecting Crossover in 4H ? Tks