veryfid

Volume Panel

Displays volume data in panel on bottom right of screen. Shows current bar, change from last bar and average of last 20 bars. This number can be changed in settings if you wish to have the average calculated on a different amount of bars.
Note di rilascio: - added fix for shortening numbers. Shout outs to all that noticed and helped with problem.
Note di rilascio: Cleaned script.
Note di rilascio: rounding issue
Note di rilascio: Fixed billion rounding
Note di rilascio: Thanks to a suggestion from @Slava_WT text size and panel width is now adjustable in settings.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Commenti

Im thinking about adding volume high and low boxes, any thoughts?
+4 Rispondi
Thanks for awesome effort mate.

Just an idea to make it more powerful.

Show something like this on the main chart

Buyer Volume % : 20% or actual value (Green)
Seller Volume % : 60% or actual value (red)
Current Candle Volume % : 20 % or actual Value. (Green/Red depending on candle)
Rispondi
veryfid krishnamauryavns
@krishnamauryavns, Hi, the volume data provided from the exchanges only specifies total volume. There are some ways to speculate buy sell percentages but these numbers based of formulas that are essentially guessing.
Rispondi
@veryfid, Sorry if i am wrong, Average volume for 20 days/10days does not seem to be giving correct value. I calculated it manually as well it wont match.
Rispondi
veryfid prajwalraok
@prajwalraok, Hi, which chart are you using?
Rispondi
@veryfid,hello, Equity on daily chart
Rispondi
veryfid prajwalraok
@prajwalraok, Hi, it looks alright to me. It does not count current volume bar in the average.
Rispondi
@veryfid, My bad, i was considering that last day volume as well
Rispondi
all you have to do is change
study("Volume Panel", overlay =true)
to
study("Volume Panel", overlay =true, format=format.volume)
Rispondi
veryfid marshmell0w
@marshmell0w, Hi, Thanks for the help. Its not as simple as that, to shorten the numbers Ive had to include:

x = "k"
if volume < 1000
x := ""
if volume >= 1000000
x := "M"
if volume >= 10000000
x := "B"

vol = volume
if volume >= 100000
vol := volume / 100000
if volume >= 1000000
vol := volume / 1000000
if volume >= 10000000
vol := volume / 10000000

I will finish testing and update script shortly. Cheers
Rispondi