Ema Crossover 2.afl
Ema Crossover 2.afl
Ema Crossover 2.afl
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();
/*Plot EMA*/
Plot( EMA( Close,13), "13 EMA",ParamColor("Color", colorRed ),styleNoRescale);
Plot( EMA( Close,5), "5 EMA",ParamColor("Color", colorBlue ),styleNoRescale);
/*Plot Ribbon */
Ribbon1=IIf( EMA( Close , 5 )>EMA( Close , 13 ) ,colorGreen, IIf(EMA( Close ,
13 )>EMA( Close , 5 ), colorRed,colorYellow));
Plot(6, "Ribbon", Ribbon1, styleOwnScale| styleArea| styleNoLabel,-0.5,100);
_SECTION_END();