peacefulLizard50262

Relative Volume (RV)

Relative Volume take the volume at a given time of day and compares it to the average volume at that time of day. You can either use the current volume or the cumulative volume in this analysis. You have the option to either see the average and the current volume or a comparative view where you see the percent difference between now and the average.

My implementation of relative volume uses a key-value pair to simplify the process of getting the average volume for the time of day. This reduces the lines of code needed and makes it easier to understand. I have added the normal features you would find in a relative volume indicator with the addition of an average above/below average section for comparing the significance of above/below average moves are. I hope this script is not only useful but educational.

Enjoy
Release Notes:
Added seconds chart compatibility. Fixed a hidden bug where it wasnt adding the right times.
Release Notes:
lol forgot to allow cumulative on seconds.

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

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?