//****************************************//// Author: doji@chartreader.co.in// Web: http://www.chartreader.co.in///****************************************//_N(Title = StrFormat(EncodeColor( colorGold) + "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));SetChartOptions(0,chartShowArrows|chartShowDates);// Background to suit my blogSetChartBkColor(ColorRGB(23,23,23));// Display line chart for tick data automaticallypriceStyle = IIf( (Interval(0) == -900), styleLine, styleBar);// Quick counting of bars by range selectorif (BeginValue(BarIndex()) != 0 AND EndValue(BarIndex()) != BarCount-1) {range = EndValue(BarIndex())-BeginValue(BarIndex());Title += StrFormat("\nRange Bars: %g", range);}CandleBorder = ParamColor("Candle Border Color", colorBlack );UpCandleColor = ParamColor("Up Candle Color", colorGreen );DownCandleColor = ParamColor("Down Candle Color", colorRed );// set amibroker to display colored barsGraph0BarColor = IIf( C > O,UpCandleColor ,DownCandleColor);Plot( C, "Close", CandleBorder, styleNoTitle | ParamStyle("Style") | priceStyle );
Saturday, July 11, 2009
My Amibroker Price Chart AFL
My Amibroker price chart AFL is very simple one with no great bells and whistles. Posting this on Kurichh's request.
Have fun!
Subscribe to:
Post Comments (Atom)
12 comments:
thanks for the AFL as well as for answerign my queries :)
hi doji .. do correct the line
Title += StrFormat("\nRange Bars: %g", range);
it has to be
Title = StrFormat("\nRange Bars: %g", range);
also just curious to ask .. are u a AFL coder ?? :)
it has to be "+=" only. It is meant to add to the existing title in new line. Yes, I do code afl.
Doji
oh strangely then it gave an error when i entered "+=" but when i changed it to = it worked fine.. Sorry if i disturbed u :( ..
what should i do now in order to get rid of += ??
Hello....Doji
I wana ask u that do u have Pattern Explorer...
and one more thing,
The AFL u given does not give any single...
I think the file just mere a Template in which background color and bar is set...
and one more thing
does AB=CD pattern needs to satisfy
BC/AB
CD/BC
CD/AB
Do u use any Stock Scanner because to find such pattern is realy tough even it needs couple to hours to find such patterns...
Thank You
Great information nice comments thank you for such a nice information....
Gold planning
@kurichh,
Save this as a new afl under your "C:\Program Files\AmiBroker\Formulas\Basic Charts" directory, refresh-all or restart your amibroker. You should see a the new afl under 'Basic Charts" in your amibroker, double click that.
@mmanoj,
I dont use pattern explorer and this is not a exploration afl. All the 3 ratios are important for ABCD.
@Lalchand
Thank you.
-Doji
@doji :- thanks :0
OK Thnks Doji
Hi Doji,
Can u pls share full code of this amibroker chart? i make copy-paste the code but no indication is showing
hi shiris..this is the full chart.. go to any sheet in ami..rightclick --edit formula..delete the old one---put this new one-- then click apply and then save... hope u see the new one :)
Post a Comment