How to Use Intraday Trading AFL For Amibroker
INTRADAY TRADING AFL FOR AMIBROKER
Every intraday traders always find a best intraday amibroker afl. But best result afl for intraday trading is not so easy to keep trading. As it is a short time period trading, so to find out intraday trading afl with target and stop loss is not so easy. Today we talk about Intraday Trading AFL for amibroker which is very much popular in intraday trading world.
This AFL use to deferment color (like blue and red) to understand intraday support and resistance. Also there is use some arrow to point out the actual pin point. The most important part of this AFL is that in below left corner its shows the buy above and sell below point which gives you a more option to realize. Hope this is helpful for every intraday trader. It is noted that if you are a forex trader or trading with forex market than it is better to use large time frame to get best result.
Image of AFL [amibroker formula language].
If you watch the image above, you may see what happen and when to trade. Afl clearly mention Buy above and Sell below trading point. As it is a intraday trading so in most of the case its give you the trading point. Just follow the point which is mention and do trade with it.
Intraday Trading for 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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | //----------------------------------------------------------- // Formula Name: Intraday Trading AFL For Amibroker 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(); //------------------------------------------------------------------------------ Version(5.20); xx=BarIndex();x=xx;Lx=LastValue(x); nbar=Param("N Pivot Bars",3,2,50,1); npiv=Param("N Pivots lookback period",1,1,50,1); PivotSymmetry=ParamToggle("Use Symmetric Pivots","Off|On",0); CleanPivots=ParamToggle("Use Clean Pivots","Off|On",0); srStyle=ParamToggle("S/R Style","Off|On",1); if (PivotSymmetry) { fc=1; pk=H>Ref(HHV(H,nbar*fc),-1) AND Ref(HHV(H,nbar),nbar)<=H; pk=pk AND Lx-ValueWhen(pk,x)>nbar*fc; tr=L<Ref(LLV(L,nbar*fc),-1) AND Ref(LLV(L,nbar),nbar)>=L; tr=tr AND Lx-ValueWhen(tr,x)>nbar*fc; } else { fc=2; pk=H>Ref(HHV(H,nbar*fc),-1) AND Ref(HHV(H,nbar),nbar)<=H; pk=pk AND Lx-ValueWhen(pk,x)>nbar*fc; tr=L<Ref(LLV(L,nbar*fc),-1) AND Ref(LLV(L,nbar),nbar)>=L; tr=tr AND Lx-ValueWhen(tr,x)>nbar*fc; } px0=ValueWhen(pk,x,0); tx0=ValueWhen(tr,x,0); px1=ValueWhen(pk,x,1); tx1=ValueWhen(tr,x,1); px2=ValueWhen(pk,x,2); tx2=ValueWhen(tr,x,2); px3=ValueWhen(pk,x,3); tx3=ValueWhen(tr,x,3); ph0=ValueWhen(pk,H,0); tl0=ValueWhen(tr,L,0); ph1=ValueWhen(pk,H,1); tl1=ValueWhen(tr,L,1); ph2=ValueWhen(pk,H,2); tl2=ValueWhen(tr,L,2); ph3=ValueWhen(pk,H,3); tl3=ValueWhen(tr,L,3); if (CleanPivots) { pk=IIf(pk AND px0<tx0 AND ph0>ph1,False,pk); tr=IIf(tr AND px0>tx0 AND tl0<tl1,False,tr); pk=IIf(pk AND px2>tx1 AND ph1<=ph2,False,pk); tr=IIf(tr AND tx2>px1 AND tl1>=tl2,False,tr); px0=ValueWhen(pk,x,0); tx0=ValueWhen(tr,x,0); px1=ValueWhen(pk,x,1); tx1=ValueWhen(tr,x,1); px2=ValueWhen(pk,x,2); tx2=ValueWhen(tr,x,2); px3=ValueWhen(pk,x,3); tx3=ValueWhen(tr,x,3); ph0=ValueWhen(pk,H,0); tl0=ValueWhen(tr,L,0); ph1=ValueWhen(pk,H,1); tl1=ValueWhen(tr,L,1); ph2=ValueWhen(pk,H,2); tl2=ValueWhen(tr,L,2); ph3=ValueWhen(pk,H,3); tl3=ValueWhen(tr,L,3); } GraphXSpace=20; SetChartOptions(0,chartShowDates); SetBarFillColor(IIf(C>O,ColorRGB(0,175,0),IIf(C<=O,ColorRGB(175,0,0),colorLightGrey))); Plot(C,"\nPrice",IIf(C>O,ColorRGB(0,175,0),IIf(C<=O,ColorRGB(175,0,0),colorLightGrey)),64,0,0,0); //plotting circles //PlotShapes(shapeSmallCircle*tr,IIf(Lx-ValueWhen(tr,x)>nbar,ColorRGB(0,100,0),colorWhite),0,L,-10); //PlotShapes(shapeSmallCircle*pk,IIf(Lx-ValueWhen(pk,x)>nbar,ColorRGB(255,0,0),colorWhite),0,H,10); if(srstyle) { miny=Status("axisminy"); maxy=Status("axismaxy"); for (i=1;i<=npiv;i++) { rr=Ref(ValueWhen(pk,H,i),-nbar); rr=IIf(rr>maxy OR rr<miny,Null,rr); ss=Ref(ValueWhen(tr,L,i),-nbar); ss=IIf(ss>maxy OR ss<miny,Null,ss); Plot(rr,"",colorBlue,styleNoLine|styleDots,0,0,0); Plot(ss,"",colorRed,styleNoLine|styleDots,0,0,0); Buy = Cross(H,rr); Sell= Cross(ss,L); PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorTurquoise, 0,L, Offset=-25); PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorOrange, 0,H, Offset=-25); } } else { rr=ValueWhen(pk,H); rr1=IIf(rr AND BarsSince(pk)>nbar,rr,Null); rr2=IIf(rr AND BarsSince(pk)<=nbar,rr,Null); ss=ValueWhen(tr,L); ss1=IIf(ss AND BarsSince(tr)>nbar,ss,Null); ss2=IIf(ss AND BarsSince(tr)<=nbar,ss,Null); Plot(rr1,"",colorRed,1); Plot(rr2,"",colorLightGrey,styleDots|styleNoLine); Plot(ss1,"",colorGreen,1); Plot(ss2,"",colorLightGrey,styleDots | styleNoLine); } Title = EncodeColor(colorWhite)+ "Intraday Trades" + EncodeColor(colorYellow) +" Open-"+O+" "+"High-"+H+" "+"Low-"+L+" "+ "Close-"+C+" "+ "Vol= "+ WriteVal(V)+"\n"+EncodeColor(colorTurquoise)+" BUY ABOVE - "+RR+" "+EncodeColor(colorOrange)+ " SELL BELOW - "+SS+" "; _SECTION_END(); GfxSetBkMode( 1 ); GfxSetTextColor( colorBrown ); GfxSelectSolidBrush(colorBlack); // this is the box background color GfxSelectFont( "Tahoma", 20, 100 ); pxHeight = Status( "pxchartheight" ) ; xx = Status( "pxchartwidth"); Left = 1100; width = 280; x = 5; x2 = 270; y = pxHeight; //GfxSelectPen( colorGreen, 1); // broader color GfxRoundRect( x, y - 60, x2+10, y+8 , 7, 7 ) ; //GfxTextOut( ( " Trading System "),88,y-165); GfxTextOut( (" "),27,y-160); GfxTextOut( ("BUY ABOVE : "+RR+" "), 13, y-58) ; // The text format location GfxTextOut( ("SELL BELOW : "+SS+""), 13, y-30); |
How to Use AFL for Amibroker
- Download Amibroker AFL File.
- Now copy the afl file and paste it to \Program Files\AmiBroker\Formulas\Custom. [For 32 bit]
- Have you 64 bit operating system? Than paste it to : \Program Files(x86)\AmiBroker\Formulas\Custom.
- Go to formula section of Amibroker and you will get the afl in Custom folder.
Watch Our Video Tutorial | How To Set Amibroker?
Tags amibroker afl
- Previous Coral Trend Indicator AFL: Find Magic Trend Indicator
- Next Volume Price Analysis:VPA Related Vol AFL For Dynamic Trading
hi how can use amibroker
you may watch our video tutorials. Thanks