EMA 15 for Amibroker (AFL)
janungh about 15 years ago Amibroker (AFL)
This is not cross over EMA, this is simple EMA 15.
Try it out, and send me feedback, coz Iam new to AFL.
Indicator / Formula
Copy & Paste Friendly
// EMA 15
Range1=Optimize("range1",15,1,250,1);
Plot( Close, "Close", colorBlack, styleCandle );
Plot(EMA( Close,range1), "15d-ema", colorRed );
Buy = Cross((Close),(EMA(Close,range1)));
Buystop = Ref(EMA(Close,range1),-1);
BuyPrice = Max(Buystop,Low);
Sell = Cross(EMA(Close,range1),(Close));
Sellstop = Ref(EMA(Close,range1),-1);
SellPrice = Min(sellstop,High);
Short = Sell;
Cover = Buy;
PlotShapes(shapeUpArrow*Buy,colorBlack);
PlotShapes(shapeDownArrow*Sell,colorRed);
GfxDrawText("EMA15", 4, 12, 550, 40);0 comments
Leave Comment
Please login here to leave a comment.