ruckard

Resistances and supports based on simplified Volume Profile

This study tries to highlight support and resistances
as they are defined by
TradingLatino TradingView user
His definition is based on volume peaks
on the official TradingView Volume Profile
indicator that seem rather big on size.

As a bonus it also serves as a rather simple volume profile indicator.
As you can see it only show last blocks volume profile .

It's aimed at BTCUSDT pair and 4h timeframe.

HOW IT WORKS
HOW IT WORKS - Recent Profile Block
It gathers volume from the last 100 Bars
in order to draw the recent profile block

Volume that intersects with current level range
being studied is added to its value.

Additionally the current level price is modified
so that it matches the level price where most
of the volume has concentrated

So you get a pretty accurate way of the volume
while at the same time the level are not stuck
to arbitrary level prices.

HOW IT WORKS - Resistances and Supports
It calculates the level which its price it's
nearer (from below) to the current price level

Resistance is found steping up (from current prive level)
level by level
till you find a level which its value
is higher than the previous level value.

Support is found steping down (from current prive level)
level by level
till you find a level which its value
is higher than the previous level value.

That way you ignore rather small
resistances and support values.

Finally the resistances and supports are drawn next to the recent profile block
so that you can look at them with ease.

If you hover over the label you can double check if you are looking at
current price, resistance or support levels.

SETTINGS
Bars in recent profile block : How many previous period volumes are used to calculate the recent profile block
Row width multiplier : Adjust how big the recent profile block seems to be
Resistances prices number of decimal digits : How many digits is shown at the resistance and support level prices.

WARNING
Please be aware that depending on your security and timeframe you might need to modify the
'Bars in recent profile block' setting so that the study does not timeout.

USAGE
If your strategy calculates take profit
limits on higher resistances based
on volume you could use this indicator
resistance detector

FEEDBACK 1
This is my first volume indicator.
I suppose that each trader
has his own approach on defining
resistances and supports.

I'm interested on knowing if the default way
this resistances and supports are calculated
matches what other traders would have
highlighted manually on the chart.

FEEDBACK 2
I have only used this identifier in BTCUSDT 4h timeframe.
I'm interested to know what needs to be tweaked
in other securities and timeframes.

PINE STUDY TRICK
This study let's you choose the number of decimals the label will use.

CREDITS
I have reused and adapted some code from
'Poor man's volume profile' study
which it's from TradingView IldarAkhmetgaleev user.

I also wanted to thank him for helping me understanding his study.
Catatan Rilis:
  • Now the label positions match the label prices written on them as anyone would expect.
  • There's also a new 'Avoid label price overlaps' mode for those users that want to use an alternate mode that makes sure labels do not overlap even if it means that the label position won't match the label price. This mode forces the labels to be printed at the top, middle and bottom of the recent block profile.
Catatan Rilis:
  • Now by default the Volume Profile is calculated using 1 day data
  • New option to switch between custom number of bars and 1 day
  • New setting: Volume Profile resolution (1 day, 1 hour, ...)
  • Added Volume Point of Control (VPoC) level
  • Slight change of colours
Catatan Rilis: Overall changes:
  • Now when two labels share the same level the VPoC is shown.
  • Label tooltips now show also the price so that it's easier to check prices when the labels overlap.
  • Presentation has been improved and many settings added to tweak it.

New settings:

  • Improve label price overlaps horizontally {True}
  • Volume Profile width (in bars) {15}: Volume Profile can be make larger or smaller in width thanks to this option.
  • Volume Profile offset (in bars) {5}: Volume Profile can be shown more to the left or to the right if the defaults do not suit you.
  • Volume Profile lines width (in pixels) {2}.
  • Volume Profile labels size {small}.
  • Volume Profile offset between labels (in bars) {2}. How many bars between labels to minimize horizontal overlaps. It will only be taken into account if 'Improve label price overlaps horizontally' is set to True.
  • Show tick difference from current price {False}. BETA. Feedback needed.
Catatan Rilis:
  • Graph was updated to focus on this indicator only.
Catatan Rilis: v20201024 update:
  • Fixed VPoC calculation
Skrip open-source

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Inggin menggunakan skrip ini pada chart?