Color Bollinger Bands for Amibroker AFL –
Color Bollinger Bands for Amibroker AFL is saying everything, Formula for intraday traders. But i would say that this afl for all those people who want to trade again n again n again daily for small profits, that means this afl formula is for scalpers. So see first trend in max timeframes, and trade on that . for small profits with small stoploss. So scalp the trend with the formula.
Here is the Color Bollinger Bands for Amibroker AFL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
//www.stockbangladesh.com //Mehedi Arafat _SECTION_BEGIN("Colorf Bollinger Bands"); P = ParamField("Price field",-1); Period = Param("Short Periods", 20, 15, 30, 1 ); Width = Param("Short Width", 2, 1, 10, 1 ); TopCond=BBandTop( P, Period, Width )>Ref(BBandTop( P, Period, Width ),-1); MidCond=MA(C,Period)>Ref(MA(C,Period),-1); BotCond=BBandBot( P, Period, Width )>Ref(BBandBot( P, Period, Width ),-1); UpColor=IIf(TopCond AND MidCond,colorDarkBlue,colorDarkRed); DownColor=IIf(MidCond AND BotCond,colorDarkBlue,colorDarkRed); PlotOHLC(BBandTop( P, Period, Width ),BBandTop( P,Period, Width ),MA(C,Period),MA(C,Period), "", UpColor, styleCloud+styleNoLabel+styleNoTitle, Null, Null, Null, -2 ); PlotOHLC(MA(C,Period),MA(C,Period),BBandBot( P, Period, Width ),BBandBot( P, Period, Width ), "", DownColor, styleCloud+styleNoLabel+styleNoTitle, Null, Null, Null, -2 ); Plot(BBandBot( P, Period, Width ),"",colorLime,styleThick+styleNoTitle, Null, Null, Null, -1); Plot(BBandTop( P, Period, Width ),"",colorLime,styleThick+styleNoTitle, Null, Null, Null, -1); Plot(MA(C,Period),"",colorLime,styleThick+styleNoTitle, Null, Null, Null, -1); Title=Name(); Filter=TopCond AND MidCond AND BotCond; AddColumn(V,"volume",1.0); _SECTION_END(); _SECTION_BEGIN("Price"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( C, "Close", ParamColor("Color", colorGold ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); _SECTION_END(); |
Leave A Comment