TradingView
fikira
31 Th08 2021 20:49

Volume Profile Auto [line] 

Bitcoin / United States DollarCoinbase

Mô tả

This project is about:

- VPSV
- array.new_line()
- array.new_box()

VPSV (pine) is one of the rare features that draws lines/figures BETWEEN bars


It doesn't run on Pine script, which makes it possible to do such things.

I wanted to have something similar while a restriction of Pine script is the impossibility to draw between bars, the only way I could think of is by using line width


In this script the higher timeframe is started with several lines (left) and a box, this box goes further until the higher timeframe ends.

During the creation of the box, each candle (lower timeframe) in this box (higher timeframe - period) is checked for position and volume, the volume is added to the left line, so when you see a thicker line, this means at that level there is more volume traded.

One of the big differences with other volume profiles is that many look back to a previous period, here when a period starts, the lines collect data - volume until the period ends, it is especially very visible in very low TF's (seconds)

This is my first script with array.new_line() - array.new_box(), which is a very nice Pine feature!
I hope this script can be helpful to see the possibilities

Settings:

'Parts' -> amount of lines (left of box)

5 Parts:


15 Parts:


25 Parts:


50 Parts:


'Max Width' -> Sets the max width of the lines

'Automatic Settings' -> Sets the higher time frame automatically, see the tooltip ⓘ for more info

The yellow line is the max volume line of that period, last period has a red line (POC), also referring the max.

Cheers!

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

bugfix

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

Improvement of array clean-up (Thanks @HeWhoMustNotBeNamed !)

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

Added more POC lines
Bình luận
PineCoders
rumpypumpydumpy
Nice work!
fikira
@rumpypumpydumpy, Thaaaaanks!
A71215
can be corrected: The maximum amount was sold (red) or purchase (green)
p_e_t_r_o_s
Thanks, great idea!
- I've found the VPSV that this script draws is differs significantly from exocharts VPSV, and visually in the areas of accumulation/distribution it shows really thin volume which is probably not correct, because these areas typically have a lot of volume as price spends quite some time here
- it would be nice to show "volume profile value area" where the most volume took place
fikira
@p_e_t_r_o_s, @reastruth, @nl8,

Very sorry for my extremely late reply, really really busy...

The most important I can say is that this was mostly driven by making something which resembles the VPSV and finding a way to get lines between bars, which worked out
as intended.
Instead of using a look back to a previous period, I used the technique which changes previous data in the course of the session.
What I haven't anticipated is the fact that the data is stretched along when there is a new high/low.
So previous volume is stretched in the direction of the new high/low.
That was not my intention...
This gives another image of course, my apologies for this!

To make things more visually:





PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
fikira
@PineCoders, Thaaaaaanks!!!
krishnamaurya
Awesome work brother, Just an Idea from my side, can we just have the Option to plot the HIGH Point Of Control (Orange Line) similar to "Poor man's Volume". Also see the below ideas and see if you can come up with more powerful one.

1) "Poor man's volume profile" by IldarAkhmetgaleev
2) "Viper - Volume Profile Visible Range Like" by deSultanTM
3) "Volume Scale by Price (VSP)" by inno14
abbas155
this indicator gives error
Thêm nữa