TradingView
Rauki
14 gen 2021 17:08

Buy/Sell Volume Bars 

Apple Inc.NASDAQ

Descrizione

Calculates buy and sell volume on each candle. Recommended only for visual use - sell volume is same as "total volume" so it will not get covered by buyvolume.

Commenti
Steporto
There are no more buyers than sellers, for one to sell someone must buy, therefore it is always the same.

The only way I see that it is possible is by detecting market orders (bull-sell-market) not limit orders.

I understand that you cannot do that in pinescript, in OFA there is the so-called DELTA that if you can visualize it.

I don't understand your indicator well, could you explain to me if it is the delta I'm looking for?
groti
@Steporto, any reply on this following as need bid ask side delta. Can this be found on trading view?
spdoinkal
slight issue with your script I've noticed is that you've defined what 'sellVolume' is (line 8), but you aren't plotting it / using that later in the script. It's dead code.
Did you intend for there to be an additional plot for sellVolume ?
aseesnathhh
@spdoinkal, I think he is not plotting because it is not necessary,
one more reason I can give is that total @1-->>> volume=buy vol+ sell vol and this gives the advantage of plotting just the volume and the buy volume because the rest is sell volume.
So, he plot lets say 1 as sell and then replot on that with buy volume that you can say is 'e' so 1-'e' is sell volume.
skytoncoin
For some reason I am not seeing the total volume in dollars on my chart, it is only showing 0 40 80 can you help me change that?
NitinPatel2211
Hi, great work. I am making an indicator using you scrip. My idea is to display daily buying and selling volume on intraday timeframe let's say 5min timeframe, but it's not working. the daily volume is coming different when looking on intraday timeframe. If you can help me with that will be great. //@version=5
indicator("My script", overlay = true, precision = 0)

volD = request.security(syminfo.tickerid, "D", volume, barmerge.gaps_off, barmerge.lookahead_off)
buyVolume1 = (high == low ? 0 : volD * (close - low) / (high - low))

string i_positionr = position.bottom_right

var tblr = table.new(i_positionr, 3, 3, frame_color=#151715, frame_width=1, border_width=2, border_color=color.new(color.white, 100))

table.cell(tblr, 0, 1, 'Buy Volume', text_halign=text.align_center, bgcolor=color.green, text_color=color.white, text_size=size.normal)
table.cell(tblr, 1, 1, 'Sell Volume', text_halign=text.align_center, bgcolor=color.red, text_color=color.white, text_size=size.normal)

table.cell(tblr, 0, 2, str.tostring(buyVolume1, format.price), text_halign=text.align_center, bgcolor=color.green, text_color=color.white, text_size=size.normal)
table.cell(tblr, 1, 2, str.tostring(volD, format.price), text_halign=text.align_center, bgcolor=color.red, text_color=color.white, text_size=size.normal)
reasonableFish36292
what doe upside down candle and negative value mean?
Spaydz
love the script bro! can u add the ability to make the bars taller or bigger please?
ihotamo
Great and simple tool! I was looking for a buy/sell volume indicator as simple as this one! Thank you.
lalitmayanglambam80
I want larger volume in front and smaller volume at back.
Altro