Afl for ema crossover

for the above given condition, check this amibroker afl for ema crossover

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

Plot( EMA( Close, 8 ), colorRed, styleThick );
Plot( EMA( Close, 13 ), colorBlue, styleThick );

Buy = Cross (EMA( Close, 8 ), EMA( Close, 13 )) ;

Sell = Cross (MA( Close, 13), EMA( Close, 8));

PlotShapes (BuyshapeUpTriangle,colorGreen);
PlotShapes (Sell
shapeDownTriangle,colorRed);
_SECTION_END();