Friday 26 December 2014

Price band using AFL

Price band using AFL







_SECTION_BEGIN("AFL Coding");

SetBarFillColor( IIf( Close > Open, colorWhite, colorBlack ) );
Plot(C, "Price", colorRed, styleCandle );

Title = " {{NAME}} {{DATE}} {{INTERVAL}} "+"";

Plot(EMA(C,3),"EMA(3)",colorGreen,styleLine);
Plot(EMA(C,13),"EMA(13)",colorYellow,styleLine);


PlotOHLC( EMA(C,3),EMA(C,3),EMA(C,13),EMA(C,13), "EMA BAND", IIf( EMA(C,3)>EMA(C,13) , colorDarkBlue , colorRed ), styleCloud);
_SECTION_END();