Skip to main content

Buying Selling Volume for Amibroker (AFL)

RAKESH.NASCENT over 11 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 8)
  • Tags:
    amibroker, volume

This is indicator for VSA analysis which represents the estimated strength of buying and selling volume on volume histogram.

Rakesh

Screenshots

Indicator / Formula

Copy & Paste Friendly
SetBarsRequired(sbrAll,sbrAll);

// BUYING VOLUME AND SELLING VOLUME //

BV = IIf( (H==L), 0, V*(C-L)/(H-L) );
SV = IIf( (H==L), 0, V*(H-C)/(H-L) );

PlotOHLC(SV,SV,0,0,"SellVolume",colorRed,styleCandle|styleNoTitle|styleNoLabel );
PlotOHLC(SV,BV+SV,SV,BV+SV,"BuyVolume",colorbrightgreen ,styleCandle|styleNoTitle|styleNoLabel );

Va = MA(V,30);

PlotOHLC( Va, Va, 0, 0, "", ColorBlend( colorWhite , GetChartBkColor(), 0.4 ), styleNoLabel | styleCloud | styleNoRescale, Null, Null, Null, -1 );
Plot(Va,"Average Volume",colorRose,styleNoLine|styleNoLabel );

VI = V/Va;

Title = "SellVolume:"+WriteVal(SV,5.0)+"   "+"BuyVolume:"+WriteVal(BV,5.0)+"   "+"VolumeIndex:"+WriteVal(VI,1.2)+"   "+
"BuyVolume:"+WriteVal(100*BV/(BV+SV),2.0)+"%"+"   "+"SellVolume:"+WriteVal(100*SV/(BV+SV),2.0)+"%";

6 comments

over 11 years ago

Hi Rakesh thanks for the indicator,

Is it possible to color the candle based on the buying selling pressure … green for buyer dominated candle and red for seller dominated candle.

Thanks in advance

over 11 years ago

Rakeh,
Thanks fr your contribution. I have followed VSA for a long time based on Karthik’s pioneering work. It would be most helpful if you could post he entire formulas
as is shown in the chart or send me the code.

Thanks
Dick
email: areehoi@yahoo.com

over 11 years ago

please give me 3 target after buy and 3 target after sell afl code.I have seen above buy 3 target and bellow sell..3 target ..pls any body help me.
mail:pulakeshdas.garia@gmail.com

5. allesf
about 11 years ago

Hi Rakesh ,
Do you have this indicator created in ZIP file?

Regards,
AF

Leave Comment

Please login here to leave a comment.