Relative Volume (RVOL)

Calculate the Relative Volume (RVOL): the volume of a period divided by its average over a window, which shows how unusually busy the period is.

Relative Volume compares a period’s volume with the average volume of the periods before it. A value of 2 means twice the usual volume: a breakout or a gap on high relative volume carries more conviction than one on thin trading, and traders use it to screen for stocks “in play”.

The formula is as follows:

\[\text{RVOL} = \frac{\operatorname{Volume}(t)}{\operatorname{SMA}(\text{Volume},\; \text{window}) (t-1)}\]

The average covers the window periods before the current one, so a spike does not raise its own benchmark. As a ratio it can be compared across tickers whatever the number of shares they trade.

Also known as: RVOL, Relative Volume, volume ratio.

Example · NVDA, TSLA · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_relative_volume:

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["NVDA", "TSLA"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_relative_volume()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How did the daily trading volume of Nvidia and Tesla in 2025 compare with their average volume?

Which returns:

Parameters

get_relative_volume accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe time period to consider for historical data. Options are: “intraday” (intraday prices), “daily” (daily prices), “weekly” (weekly prices), “monthly” (monthly prices), “quarterly” (quarterly prices), “yearly” (yearly prices). Defaults to “daily”."weekly"
windowintThe number of earlier periods to average the volume over. Defaults to 20.20
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the indicator values. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

  • Paper Bulkowski, T.N. (2005). “Encyclopedia of Chart Patterns.” 2nd ed. John Wiley & Sons.
  • Library Referenced against TA-Lib’s RVOL
Share