OPEN-SOURCE SCRIPT

Intraday RVOL Overlay: Time Of Day Relative Volume

338
Intraday RVOL Overlay — Time-of-Day Relative Volume

The 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, to do this, the indicator plots intraday relative volume directly on the price chart.

It is designed to answer one 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, 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 today’s cumulative volume from the start of the session up to 14:45 with the average cumulative volume from the start of the session up to 14:45 over the selected lookback period.

The result is shown as an RVOL multiple.

How RVOL is calculated

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

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.

The script combines three ideas:
  • Cumulative intraday volume tracking
  • Historical same-time-of-day volume comparison
  • Price-chart overlay scaling

How to read the lines

The main RVOL line shows today’s cumulative intraday relative volume.
  • RVOL below 1.0x means volume is running below normal
  • RVOL around 1.0x means volume is running around normal
  • RVOL above 1.5x means volume is meaningfully above average
  • RVOL above 2.0x means volume is unusually strong

The script also plots reference lines for average volume and high volume.

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:
  • Intraday charts from 1 minute upward

Not supported:
  • Seconds charts
  • Daily charts
  • Weekly charts
  • Monthly charts

Practical interpretation

This script can help give volume context to intraday price movement.
  • 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. اقرأ المزيد في شروط الاستخدام.