OPEN-SOURCE SCRIPT

RVOL Relative Volume - Intraday

Updated
Hello All,

Relative Volume is one of the most important indicators and Traders should check it while trading/analyzing. it is used to identify whether the volume flows are increasing or decreasing. Relative volume measures current volume in relation to the “usual” volume for this time of the day. What is considered “usual"? For that, we have to use a historical baseline known as the average daily volume. That means how much volume a security does on a daily basis over a defined period. (This scripts runs on the time frames greater or equal 1 minute and less than 1 day)

The common definition for real-time relative volume is: Current volume for this time of day / Average volume for this time of day. It does not mean taking the volume (for example) from 10:30 am to 10:45 am and comparing it to what it does from 10:30 am to 10:45 am every day. What it truly means is to compare cumulative volumes. Therefore, this is the precise definition of real-time relative volume:

Current cumulative volume up to this time of day / Average cumulative volume up to this time of day

What should we understand while checking RVOL;
- Relative volume tell us if volume flows are increasing or decreasing
- A high relative volume tells us that there is increased trading activity in a security today
- Increased volume flows often accompany higher volatility i.e. a significant price move


Let see an example:
snapshot


P.S. if you want to get more info about RVOL/Relative Volume then you can search it on the net. While developing the script this was used as reference, you can also check it for more info.


Enjoy!
Release Notes
Algorithm slightly improved. instead of calculating cumulative volume on each bar, now the array keeps cumulative volumes.
Lighter colors used.
Release Notes
Tooltip added for the input "Number of Days". unnecessary input option removed.
Release Notes
Fixed for Daylight saving: "Daylight saving on last weekend" option added. Please enter +1/-1 if Daylight saving last weekend, if not please keep it 0.
cumulativevolumedailychartsdaylightsavingslonesometheblueOscillatorspriceactionpriceactiontradingtrendtradingVolatilityvolumepriceanalysisVolume

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer