Negative and Positive Volume Index

Calculate the Negative or the Positive Volume Index (NVI or PVI), which separates the trades of informed investors from those of the crowd.

It is a running total of the price changes on the periods volume falls (NVI) or rises (PVI).

The Negative Volume Index is a cumulative index that only updates on days where volume decreases from the prior period, compounding that day’s percentage price change onto the running index; on days where volume increases (or stays flat), the index is carried forward unchanged. The premise, per Fosback, is that “smart money” tends to be active on low-volume (quiet) days, so tracking price behaviour specifically on those days isolates informed trading from the noise of high-volume, crowd-driven days. The Positive Volume Index mirrors it: it only updates on days where volume increases from the prior period, and is carried forward unchanged on days where volume decreases (or stays flat). Per Fosback, it isolates price behaviour on high-volume (crowd-driven) days, which is traditionally read as tracking less-informed, sentiment-driven trading.

The formula is as follows, per method:

\[\text{Negative Volume Index:}\;\; \operatorname{Index}(t) = \operatorname{Index}(t-1) \cdot \left(1 + \left(\frac{\operatorname{Close}(t)}{\operatorname{Close}(t-1)} - 1\right)\right) \;\text{if Volume}(t) < \operatorname{Volume}(t-1),\;\; \text{and}\;\; \operatorname{Index}(t) = \operatorname{Index}(t-1) \;\text{otherwise}\] \[\text{Positive Volume Index:}\;\; \operatorname{Index}(t) = \operatorname{Index}(t-1) \cdot \left(1 + \left(\frac{\operatorname{Close}(t)}{\operatorname{Close}(t-1)} - 1\right)\right) \;\text{if Volume}(t) > \operatorname{Volume}(t-1),\;\; \text{and}\;\; \operatorname{Index}(t) = \operatorname{Index}(t-1) \;\text{otherwise}\]

Also known as: NVI, Negative Volume Index, PVI, Positive Volume Index, volume index.

Example · SPY, IWM · 2021 to 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["SPY", "IWM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
    benchmark_ticker=None,
)

toolkit.technicals.get_volume_index()

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

How did the Negative Volume Index of the SPDR S&P 500 and iShares Russell 2000 ETFs develop in 2025?

Which returns:

Parameters

get_volume_index 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"
close_columnstrThe column name for closing prices in the historical data. Defaults to “Adj Close”."Close"
start_valuefloatThe index value to start the series at. Defaults to 1000.0.100.0
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 volume index. 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
methodstrThe index. Options are: “negative” (the Negative Volume Index), “positive” (the Positive Volume Index). Defaults to “negative”."negative"
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 Fosback, N.G. (1976). “Stock Market Logic: A Sophisticated Approach to Profits on Wall Street.” The Institute for Econometric Research.
  • Library Referenced against TA-Lib’s NVI
  • Library Referenced against TA-Lib’s PVI
Share