OPEN-SOURCE SCRIPT
Intraday RVOL Overlay: Time-of-Day Relative Volume

## Intraday RVOL Overlay — Time-of-Day Relative Volume
This indicator plots intraday relative volume directly on the price chart.
It is designed to answer a specific question:
Is today’s volume running above or below normal for this exact point in the trading session?
A standard volume moving average compares recent candles with other recent candles. That can be useful, but it does not account for the natural shape of intraday volume. Volume is usually heavier near the market open, often quieter around midday, and may increase again near the close.
This script takes a different approach. It compares today’s cumulative intraday volume with the average cumulative volume at the same time of day over previous trading sessions.
For example, if the chart is at 14:45, the script compares:
with
The result is shown as an RVOL multiple.
How RVOL is calculated
The script calculates:
RVOL = today’s cumulative intraday volume so far / average cumulative intraday volume by the same time of day
Example:
Today cumulative volume: 4.05M
Average cumulative volume by this time: 6.30M
RVOL = 4.05M / 6.30M = 0.64x
This means the symbol is trading at around 64% of its normal cumulative volume for that point in the session.
What makes this script different
This is not a basic volume moving average and it is not a standard RSI or moving-average crossover setup.
The original purpose of this script is to provide a time-of-day adjusted intraday volume comparison while keeping the information visible on the main price chart.
The script combines three ideas:
1. Cumulative intraday volume tracking
2. Historical same-time-of-day volume comparison
3. Price-chart overlay scaling
Instead of asking whether the current candle has high volume compared with the last few candles, it asks whether today’s total traded volume so far is high or low compared with what is normally expected at this stage of the session.
How to read the lines
The main RVOL line shows today’s cumulative intraday relative volume.
The script also plots reference lines:
If the RVOL line is below the 1.0x line, today’s cumulative volume is below average for this point in the session.
If the RVOL line is above the 1.5x line, today’s cumulative volume is meaningfully above average for this point in the session.
Important note about price scaling
RVOL is a ratio, not a price.
Because this script is plotted as an overlay on the main price chart, the RVOL values are visually mapped into a small band inside the recent price range.
This means the price-axis values shown beside the RVOL plots are only visual placement values. They are not support levels, resistance levels, targets, or actual price signals.
The overlay is price-scaled only so the RVOL information can be viewed directly alongside price action without requiring a separate indicator pane.
Inputs
Average over previous trading days
Controls how many prior trading sessions are used to calculate the average cumulative volume baseline.
Price scaling lookback bars
Controls the recent price range used to place the RVOL overlay band on the chart.
RVOL value plotted at top of band
Controls the visual cap for the overlay. For example, with a cap of 3.0, RVOL values of 3.0x or higher are plotted at the top of the visual band.
Overlay band position
Allows the RVOL band to be placed near the top or bottom of the price chart.
Overlay band height
Controls how much vertical space the RVOL overlay uses inside the price chart.
Fallback search minutes
Allows the script to look backwards for nearby historical volume slots when exact same-minute data is missing.
Suggested use
This indicator is intended for intraday charts.
Recommended chart timeframes:
- 5-minute
- 15-minute
- 1-hour
Supported chart timeframes:
Not supported:
- Seconds charts
- Daily charts
- Weekly charts
- Monthly charts
Practical interpretation
This script can help give volume context to intraday price movement.
For example:
- A price move with RVOL below 1.0x may be happening on weaker-than-normal participation.
- A price move with RVOL above 1.5x may have stronger-than-normal participation.
- A breakout attempt with RVOL above 2.0x may be occurring during unusually active trading.
This does not mean the move will continue. It only shows whether volume participation is above or below normal for that time of day.
Limitations
This script works best on liquid symbols with regular intraday trading activity.
Results may be affected by:
- extended-hours data
- half trading days
- market holidays
- trading halts
- low-liquidity symbols
- missing historical bars
- unusual trading sessions
- symbols with irregular volume patterns
The script does not generate buy or sell signals. It should be used as a volume context tool alongside price action, trend, liquidity, volatility, and risk management.
Disclaimer
This script is provided for educational and research purposes only. It is not financial advice. It does not predict price direction and should not be used as the sole basis for trading decisions.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.