RVOL calculation guide

Relative Volume Indicator for thinkorswim

Relative volume compares current activity with a stated baseline. On intraday charts, the main design choice is whether to compare with recent bars or with the same time of day across prior sessions.

Source review completed

Prompt brief

ThinkScript · one source file

Review in thinkorswim

Example request

Create a lower thinkorswim RVOL study that divides current five-minute bar volume by the mean volume for the same five-minute slot across the prior 20 regular sessions, with safe handling for missing history.

Editable sourceFocused revisionsNative editor check

Direct answer

thinkorswim documents a RelativeVolumeStDev study and exposes bar volume to custom thinkScript. A custom RVOL ratio can divide current volume by an average baseline, but the denominator must be specified. A simple recent-bar average and a time-of-day seasonal average answer different questions.

What to know first

  • Define the baseline before interpreting an RVOL value such as 2.0.
  • Session boundaries and extended-hours settings affect intraday comparisons.
  • Thin or missing volume can make a ratio unstable or undefined.

Reference points

Keep the calculation explicit

Current volume
The volume assigned to the current chart bar for the selected symbol and aggregation.
Recent-bar baseline
An average of a fixed number of preceding bars. It adapts quickly but ignores time-of-day seasonality.
Time-of-day baseline
A comparison with corresponding intraday periods from earlier sessions.
Standardized reading
A deviation measure that expresses current volume relative to a historical mean and variability.

Why RVOL formulas disagree

One script may compare the current bar with a 20-bar moving average. Another may compare cumulative volume since the open with average cumulative volume at the same time on prior days. Both can be called relative volume, but their numbers are not interchangeable.

Write the formula in the study name or description and expose the lookback, session, and threshold as inputs. This makes the reading auditable.

Test the denominator and session logic

Check the first bars of a session, symbols with sparse volume, and any bar where the baseline could be zero. Decide whether extended-hours bars belong in both the numerator and baseline.

A high relative-volume value describes unusual activity under the selected formula. It does not specify price direction or the quality of a trade setup.

Pineify thinkScript workflow

Turn the specification into editable thinkScript

Give the Coding Agent the formula, inputs, plots, alerts, and edge cases. It returns one editable study or strategy file and keeps focused revisions in the same code artifact.

Open the thinkScript agent

Sources and scope

Last verified:

Pineify provides information and code-generation assistance, not investment advice. Generated scripts, strategy reports, simulations, and historical examples cannot predict prices or guarantee returns. Review every script and test it in thinkorswim before relying on its output.

Frequently asked questions

What does relative volume mean in thinkorswim?

It compares current volume with a defined historical baseline. The exact meaning depends on whether the baseline uses recent bars, prior sessions, or a standardized deviation method.

Is RVOL above 1 always bullish?

No. A value above 1 means activity is above the selected baseline. It does not determine whether price should rise or fall.

Can Pineify create a time-of-day RVOL study?

Pineify can generate a single-file study when you define the sessions, lookback days, aggregation, cumulative or bar-level method, and missing-data behavior. Verify the result on several sessions in thinkorswim.

Continue in the thinkScript coding workspace

Generate one editable thinkScript study or strategy, inspect the source, request focused changes, and complete the final check in thinkorswim.

Pineify generates source code. thinkorswim remains the platform authority for parsing and chart behavior.