Instant Actionable Profit With Bollinger Band ZigZag Indicator 4
BOLLINGER BAND ZIGZAG INDICATOR 4
Want instant profit ? Than use Bollinger Band ZigZag Indicator 4 for Amibroker AFL. Bollinger Band identify Lower upper support resistance. It makes your trading sense. With ZigZag indicator with Bollinger Band, it also be stronger modify indicator. So why not use Bollinger Band ZigZag Indicator 4 .
This modify indicator influence you to trade scalp. See first trend in max time frames, and trade on that . For small profits with small stop loss. So scalp the trend with the formula.
Image of AFL [amibroker formula language].
AMIBROKER 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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | //------------------------------------------------------------------------------ // Formula Name : BOLLINGER BAND ZIGZAG INDICATOR afl by pipschart // Author : KrT group // Up-loader : 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 Band ZigZag Indicator"); function ParamOptimize( description, defaultVal, minv, maxv, step ) { return Optimize(description, Param(description,defaultVal, minv, maxv, step ), minv, maxv, step ); } BlankBars = 10; // Set to the number set in preferences Buy = Sell = Short = Cover = Pos = 0; Periods = ParamOptimize( "Periods", 3, 3, 30, 1 ); Width = ParamOptimize( "Width", 1, 0, 5, 0.1 ); BBTOp = BBandTop( H, Periods, Width ); // Note H is used instead of the tradional C BBBot = BBandBot( L, Periods, Width ); // Note L is used instead of the tradional C Plot( BBTop, "BBTop", colorBlue, styleLine ); Plot( BBBOt, "BBBot", colorBlue, styleLine ); Plot( C, "", 1, 128 ); BI = BarIndex(); start = Status( "firstvisiblebarindex" ) - BI[0] - BlankBars; end = Status( "lastvisiblebarindex" ) - BI[0] - BlankBars; LBI = LastValue( BarIndex() ); for ( b = LBI; b > Periods; b-- ) { if ( L[b] <= BBBot[b] AND pos <= 0 ) { pos = 1; Buy[b] = True; BuyPrice[b] = BBBot[b]; } else if ( H[b] >= BBTop[b] AND Pos >= 0 ) { Pos = -1; Sell[b] = True; SellPrice[b] = BBTop[b]; } } Short = Sell; ShortPrice = SellPrice; Cover = Buy; CoverPrice = BuyPrice; Eq = Equity( 1 ); if ( ParamToggle( "Equity", "HIDE|SHOW", 0 ) ) Plot( Eq, "", colorYellow, 1 | styleOwnScale ); ShowTriangles = ParamToggle( "Arrows", "HIDE|SHOW", 1 ); if ( showTriangles ) { PlotShapes( IIf( Buy, shapeSmallUpTriangle, shapeNone ), 5, 0, BuyPrice, 0 ); PlotShapes( IIf( Sell, shapeHollowDownTriangle, shapeNone ), 4, 0, SellPrice, 0 ); PlotShapes( IIf( Cover, shapeHollowUpTriangle, shapeNone ), 5, 0, CoverPrice, 0 ); PlotShapes( IIf( Short, shapeSmallDownTriangle, shapeNone ), 4, 0, ShortPrice, 0 ); } if ( ParamToggle( "Trade Lines", "HIDE|SHOW", 0 ) ) { Sig = Buy OR Short; signum = Cum( Sig ); y0 = 0; y1 = C[0]; TPrice = C; Shortcolor = LongColor = colorWhite; for ( b = start ;b < end ;b++ ) { if ( Sig[b] ) { x0 = y0; x1 = y1; y0 = b; if ( Buy[b] ) { y1 = BuyPrice[b]; Color = Shortcolor; } else if ( Short[b] ) { y1 = ShortPrice[b]; Color = Longcolor; } if( SigNum[b] > 1 ) Plot( LineArray( x0, x1, y0, y1 ), "", Color, 1 | styleThick ); } } } _SECTION_END(); |
Download AFL
How to use AFL for Amibroker
Tags amibroker afl
0 thoughts on “Instant Actionable Profit With Bollinger Band ZigZag Indicator 4”