Volume Zone Oscillator (VZO)

Calculate the Volume Zone Oscillator (VZO): the volume of up closes minus that of down closes as a share of the total volume, smoothed, which shows whether buying or selling volume dominates.

The Volume Zone Oscillator divides the volume into the volume of up closes and that of down closes and expresses their difference, smoothed with an exponential moving average, as a share of the smoothed total volume.

The formula is as follows:

\[\text{Signed Volume} = \operatorname{sign}(\text{Close} - \operatorname{Close}(t-1)) \cdot \text{Volume}\] \[\text{VZO} = \frac{\operatorname{EMA}(\text{Signed Volume},\; \text{window})}{\operatorname{EMA}(\text{Volume},\; \text{window})}\]

Khalil and Steckler read it in zones: above 0.05 the trend is bullish and above 0.40 overbought (0.60 extremely), below -0.05 bearish and below -0.40 oversold (-0.60 extremely), with crossings of zero and of the 0.40 lines as signals. As a share of volume it is comparable across tickers.

Also known as: VZO, Volume Zone Oscillator.

Example · AAPL, MSFT · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_volume_zone_oscillator()

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

Was Apple or Microsoft overbought or oversold in 2025 according to the Volume Zone Oscillator?

Which returns:

Parameters

get_volume_zone_oscillator 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"
windowintThe number of periods for both EMAs. Defaults to 14.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 Khalil, W. and Steckler, D. (2011). “In The Volume Zone.” Technical Analysis of Stocks & Commodities, 29(5).
  • Library Referenced against finta’s VZO
Share