OPEN-SOURCE SCRIPT
Volume To Bar Range Ratio

This script plots
Pine Script®
for each bar. A simple measure of how much volume was traded per unit of price range.
Usage
In normal trading bars, volume tends to be correlated to the size of the bar. Small bars have small volume, large bars have large volume. However, key bars tend to have an unusually high ratio of range to volume. This is useful for identifying areas of support and resistance, when they are broken, and key runaway days when price goes parabolic.
Support and Resistance
Key Runaway Days
When price has become parabolic and has made several consecutive large moves up, a large bar with a volume to bar range ratio that is extremely high, higher than any other bar made previously, this is an indicator that a runaway day is occurring. Price is unlikely to continue moving parabolically after this day, and it would be a good time to take profits.
Notes
Note on Originality
This is the first, only, and original implementation of Volume to Bar Range Ratio available in PineScript. This can be easily verified with a search for "Volume to Bar Range Ratio", "Volume Bar Range Ratio", "VBRR", and"VTBRR" on TradingView. Also, a Google search for the same terms, adding "pinescript" or "tradingview" shows that my implementation is the only implementation, and the only other result is a complaint on reddit that this does not exist.
volume / (high - low)
for each bar. A simple measure of how much volume was traded per unit of price range.
Usage
In normal trading bars, volume tends to be correlated to the size of the bar. Small bars have small volume, large bars have large volume. However, key bars tend to have an unusually high ratio of range to volume. This is useful for identifying areas of support and resistance, when they are broken, and key runaway days when price goes parabolic.
Support and Resistance
- When price is near an area of support or resistance, or approaching a recent high/low, a small bar with unusually high volume tends to be an indicator that the support/resistance is holding.
- When price breaks through an area of support or resistance, or makes a new high or low, and the bar that does is large with an unusually high ratio of volume to range, this is an indicator that support/resistance has been decisively broken. Conversely, if the bar is large, but the ratio of price to volume is similar to other large bars, it is a warning that this might not be a decisive break.
Key Runaway Days
When price has become parabolic and has made several consecutive large moves up, a large bar with a volume to bar range ratio that is extremely high, higher than any other bar made previously, this is an indicator that a runaway day is occurring. Price is unlikely to continue moving parabolically after this day, and it would be a good time to take profits.
Notes
- Bars where `high == low` produce `na` (a gap in the plot) to avoid division by zero.
- Works on any symbol and timeframe that reports volume.
Note on Originality
This is the first, only, and original implementation of Volume to Bar Range Ratio available in PineScript. This can be easily verified with a search for "Volume to Bar Range Ratio", "Volume Bar Range Ratio", "VBRR", and"VTBRR" on TradingView. Also, a Google search for the same terms, adding "pinescript" or "tradingview" shows that my implementation is the only implementation, and the only other result is a complaint on reddit that this does not exist.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Software engineer and part time trader.
davisgoff.com
davisgoff.com
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Software engineer and part time trader.
davisgoff.com
davisgoff.com
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.