Wednesday, June 11, 2014

Learn AFL Code : How to draw colorful background AFL code

Now I want to set the background color of any chart
My function is
SetChartBkColor( color )

here is a sample code,
_SECTION_BEGIN("Debarghya: AFL Coding");

SetChartBkColor( ColorRGB( 120, 130, 140 ));


SetBarFillColor( IIf( Close > Open, colorWhite, colorBlack ) );
Plot(C,"Price", colorBlack, styleCandle );
Plot(EMA(C,3),"SMA(3)", colorRed );
Plot(EMA(C,13),"SMA(13)", colorGreen );

_SECTION_END();

Debarghya Mukherjee
Mobile: (+91)-9038787021
Email: debarghya_mkr@yahoo.com

No comments:

Post a Comment