_SECTION_BEGIN("5-13 EMA Channel");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g Vol " +WriteVal( V, 1.0 )+ "{{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
A = EMA( H,5 );
B = EMA( L,5 );
x= Ref(A,-13);
y= Ref(B,-13);
Plot(x, "", colorBlue,styleThick);
Plot(y, "" , colorRed,styleThick);
_SECTION_END();
Instruction:-
1. If candle closes above blue line then buy with stop below redline.
2. If candle closed below red line then sell with stop above blueline
Use with adx indicator then its a good trading strategy.
Bye.