PLOT PRICE IN AFL
I have already posted one post that has described how we can plot price in AFl. but that was very simple. That was only plotting Candle price in charts.
Today I am talking about in depth price plotting,
Basic way,
_SECTION_BEGIN("price section");
Plot( Close, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
Very Basic black and White candlestick chart. Boring!!!
Lets do some different things here.
_SECTION_BEGIN("Debarghya: AFL Coding");
Plot(C, "Price", colorRed, styleBar );
_SECTION_END();
Red color Bar chart.
Ok, now what I have done here? I have used "C" as closing price. But two things that we can change, that is "colorRed" and "styleBar". Lets change them as we want,
Styles:
- styleCandle
- styleLine
- styleBar
Colors:
- colorRed
- colorBlack
- colorYellow
- colorGreen
- ColorWhite
- etc
So lets take some Examples,
_SECTION_BEGIN("Debarghya: AFL Coding");
Plot(C, "Price", colorGreen, styleBar );
_SECTION_END();
_SECTION_BEGIN("Debarghya: AFL Coding");
Plot(C, "Price", colorYellow, styleLine );
_SECTION_END();