Angled Volume Profile

Angled Volume Profile
Angled Volume Profile

Volume profile is a useful tool to understand the demand and supply zones on the horizontal level. But, what if you want to measure the volume levels over the trend line? In trending markets, the feature to measure volume over angled levels can be very useful for traders who use these measures. Here is an attempt to provide such a tool.

Link to the indicator: Angled Volume Profile

How to use Angled Volume Profile

Interactive input for selecting starting point and angle.

Upon loading the script, you will be prompted to select

  • Start time and price - this is a point that you can select by moving the maroon highlighted label.
  • End price - though this is shown as the maroon bullet, this is price-only input. Hence, when you click on the bullet, a horizontal line will appear. Users can move the line to use different End prices.

The start and end price is used for identifying the angle at which the volume profile needs to be calculated. Whereas start time is used as starting time of the volume profile. The last bar of the chart is considered the ending bar.

Loading Angled Volume Profile
Loading Angled Volume Profile

Other settings

From settings, users can select the colour of the volume profile and style. The step multiplier defines the distance at which the profile lines need to be drawn. A higher multiplier leads to less dense profile lines whereas a lower multiplier leads to a higher density of profile lines.

Angled Volume Profile Settings
Angled Volume Profile Settings

Limitations of Angled Volume Profile Indicator

Max 500 Lines

Pinescript only allows max 500 lines on an indicator. Due to this, if we set a very low multiplier - this can lead to more than 500 profile lines. Due to this, some lines can get removed.

Lines removed due to Pinescript limitations
Lines removed due to Pinescript limitations

On the contrary, if the multiplier is too high, then you will see very few lines that may not be meaningful.

A higher multiplier leads to less meaningful data
A higher multiplier leads to less meaningful data

Hence, it is important to select the optimal multiplier based on your timeframe

No updates on the new bar

Since the profile can spawn many bars, it is not possible to recalculate the whole volume profile when the price creates new bars. Hence, there will not be a visual update when new bars are created. But, to update the chart, users only need to make another movement of the Start or ending point on interactive input.

Comments