_SECTION_BEGIN("ema3,18");
x = EMA(Close,3);
y = EMA(Close,18);
acc = Param("Acceleration", 0.02, 0, 1, 0.001 );
accm = Param("Max. acceleration", 0.2, 0, 1, 0.001 );
Plot(EMA(Close,3),"",colorBrightGreen, styleLine, styleThick);
Plot(EMA(Close,18),"",colorRed, styleLine, styleThick);
GraphXSpace=0.5;
Plot(C,"",colorBlue,styleCandle);
Buy = Close > EMA( Close , 18 ) AND Ref( Close , -1 ) > Ref( EMA( Close , 18 ) , -1 ) AND Cross(x,y);
Sell = (Close < SAR(acc,accm)) AND Ref((Close > SAR(acc,accm)),-1);
Short = Close < EMA( Close , 3 )AND Ref( Close , -1 ) < Ref( EMA( Close , 3 ) , -1 )AND Cross(y,x);
Cover = (Close > SAR(acc,accm)) AND Ref((Close < SAR(acc,accm)),-1);
PlotShapes(shapeUpArrow*Buy,colorGreen, 0, L, Offset=-45);
PlotShapes(shapeSmallDownTriangle*Sell,colorblue, 0, L, Offset=-45);
PlotShapes(shapeSmallUpTriangle*Cover,colorred, 0, L, Offset=-45);
PlotShapes(shapeDownArrow*Short,colorOrange, 0, H, Offset=-45);
Plot( SAR( acc, accm ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", styleDots | styleNoLine, maskDefault | styleDots | styleNoLine ) );
_SECTION_END();
Regards
Vivith
www.neotradeanalytics.com