TradingView
veryfid
13 Th06 2021 22:58

Volume Panel 

Mô tả

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.

Phát hành các Ghi chú

- added fix for shortening numbers. Shout outs to all that noticed and helped with problem.

Phát hành các Ghi chú

Cleaned script.

Phát hành các Ghi chú

rounding issue

Phát hành các Ghi chú

Fixed billion rounding

Phát hành các Ghi chú

Thanks to a suggestion from @Slava_WT text size and panel width is now adjustable in settings.
Bình luận
veryfid
Im thinking about adding volume high and low boxes, any thoughts?
krishnamaurya
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)
veryfid
@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.
jackmasters1990
You need to adjust the value's at the bottom of the script to work with other pairs. I found 100 works nicely for USDJPY may be different for other pairs.

Code to change:

if barstate.islast
f_fillCell(perfTable, 0, 0, volume / 1000000, "Vol")
f_fillCell(perfTable, 0, 1, (volume - volume) / 1000000, "Change")
f_fillCell(perfTable, 0, 2, array.avg(a) / 1000000, "Avg")

Adjustments:

if barstate.islast
f_fillCell(perfTable, 0, 0, volume / 100, "Vol")
f_fillCell(perfTable, 0, 1, (volume - volume) / 100, "Change")
f_fillCell(perfTable, 0, 2, array.avg(a) / 100, "Avg")
veryfid
@jackmasters1990, Hi thanks for looking into it. I will make adjustments today to be able to change the "/ number" in settings. Cheers.
prashantgaonkar63
Volume label is to much small please update
erdinczeytin94
When I check manually, the indicator shows wrong.
veryfid
@erdinczeytin94, Hi, thanks for the report. I will look into it. Can you tell me the problem?
prajwalraok
@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.
veryfid
@prajwalraok, Hi, which chart are you using?
Thêm nữa