Best Bollinger Band Squeeze & Expansion for Amibroker AFL (100% WORK)
Amibroker AFL
6,027 views
Bollinger Band Squeeze AFL
Bollinger Band Squeeze AFL – refers clear indication of trading chart. Anyone can introduce this to your trading chart its for Bollinger Bank Squeeze & Expansion Color.
By this Afl you can identify the trend of a stock. Bollinger Band AFL gives you a clear idea about stock trend where it is expansion or not. By using this afl you have to need know the basic concept of Bollinger Band formula.
Just download & Enjoy !!
Bollinger Band Squeeze AFL CODE
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 37 38 39 40 41 42 43 | //-------------------------------------------- // Formula Name : Bollinger Band Squeeze & Expansion for Amibroker AFL by pipschart // Author : KrT group // Uploader : www.pipschart.com // E-mail : info@pipschart.com // Amibroker Blog : www.pipschart.com/amibroker // Origin : Modified & Collected from different sources. //---------------------------------------- _SECTION_BEGIN("KrT group"); GfxSetBkMode(1); X=750; Y=1; Font=10; GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorRed);GfxTextOut("KrT group",x,y); GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorGreen);GfxTextOut("RESEARCH",x+120,Y); _SECTION_END(); //-------------------------------------------------- _SECTION_BEGIN("Bollinger Bands"); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); //SetBarFillColor( IIf( C>O, colorGreen, colorRed ) ); Plot( C, "Close", colorBlack, styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 300, 1 ); Width = Param("Width", 2, 0, 10, 0.05 ); Color = ParamColor("Color", colorCycle ); Style = ParamStyle("Style"); bbtop=BBandTop( P, Periods, Width ); bbbot=BBandBot( P, Periods, Width ); Plot(bbtop, "BBTop" + _PARAM_VALUES(), Color, Style ); Plot(bbbot , "BBBot" + _PARAM_VALUES(), Color, Style ); diff=bbtop-bbbot; sqeezcolor=ColorRGB(194,220,218); expandcolor=ColorRGB(255,220,218); PlotOHLC( bbtop,bbtop, bbbot,bbbot, "Price chart shifted 10% up",IIf(((diff/bbtop)*100)<12,sqeezcolor,expandcolor), styleCloud ); // Plot( diff, "Diff", colorGreen, Style ); _SECTION_END(); |
How to use AFL for Amibroker
- Download the Amibroker AFL.
- Now copy the AFL file and paste it to \Program Files\AmiBroker\Formulas\Custom. [For 32 bit]
- If You have a 64-bit operating system than paste it to \Program Files(x86)\AmiBroker\Formulas\Custom.
- Go to the formula section of Amibroker and you will get the afl in Custom folder.
Tags amibroker afl
0 thoughts on “Best Bollinger Band Squeeze & Expansion for Amibroker AFL (100% WORK)”