Volume Price Analysis:VPA Related Vol AFL For Dynamic Trading
Amibroker AFL
8,056 views
VPA RELATED VOL AFL FOR AMIBROKER
VPA Related Vol AFL For Amibroker is another dynamic AFL for Successful Trading. This AFL creates on the basis of volume price analysis theory. Just watch the price level and identify the related volume and than take a buy or sell signal. Volume Break out system is dynamic work for it.
In figure you may watch the price level and keep eyes on breakout system of volume level. Low price & breakout volume bar gives you a buy signal and high price high volume tells you a sell signal.
Image of AFL [amibroker formula language].
In image AFL tells us that if there is low price but volume break out than take a strong buy signal. On the other hand if there is a situation – High price and high volume than its tell you go out from that stock or pair.
VPA Related Vol AFL for Amibroker 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 | //--------------------------------------------- // Formula Name: VPA RELATIVE VOL 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("VPA_Relative_Vol"); LBP = Param("Look Back", 15, 0, 100,1 ); V1=IIf(V<=0,MA(V,LBP),V); //minimize errors on volume data (data <= 0) Mean = MA(ln(V1),LBP); // LBP periods moving average of(natural logaritm of( volume)) avvol = exp(mean); // average volume VolUnit = avvol/3.5; // avvol=VolUnit*3.5 // color up bar volume blue, down bar volume red, volume lower than the volumes of the 2 previous bars pink Clr = IIf(V1<Ref(V1,-1)AND V1<Ref(V1,-2),11,IIf(Close>Ref(Close,-1),29,IIf(Close==Ref(Close,-1),1,32))); // Ultra High band // Ultra High band // Ultra High band VeryHighBand = avvol + VolUnit*3.5;// 7 ---------------- // Very High band HighBand = avvol + VolUnit*2.5; // 6 ---------------- // High band // High band AvgBandHigh = avvol + VolUnit/2; // 4 ---------------- //------------------------------------ 3.5 Average band AvgBandLow = avvol - VolUnit/2; // 3 ---------------- // Low band // Low band LowBand = avvol - VolUnit*2.5; // 1 ---------------- // Very low band //-------------------------------------0----------------- Plot(exp(ln(V1)),"",Clr,6); // plot Volume Histogram Plot(avvol,"",29,1);// plot average volume Plot(0,"",29,1|4096); // plot 0 volume Plot(LowBand,"",40,styleArea|1|4096); Plot(AvgBandLow,"",52,styleArea|1|4096); Plot(AvgBandHigh,"",10,styleArea|1|4096); Plot(HighBand,"",52,styleArea|1|4096); Plot(VeryHighBand,"",40,styleArea|1|4096); _SECTION_END(); |
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
0 thoughts on “Volume Price Analysis:VPA Related Vol AFL For Dynamic Trading”