Klinger Volume Oscillator (KVO)

Calculate the Klinger Volume Oscillator (KVO): the difference between a fast and a slow average of the volume force, which compares the volume of up and down trends to show long-term money flow.

The Klinger Volume Oscillator turns each period’s volume into a signed “volume force”: positive when the sum of the high, low and close rose from the period before (an up trend), negative when it fell, and weighted by how the period’s range compares with the range accumulated since the trend last turned. The oscillator is the difference between a short and a long exponential moving average of that force, with a signal line to show when it turns.

The formula is as follows:

\[\text{Trend} = + 1 \;\text{if High} + \text{Low} + \text{Close} > \text{the previous High} + \text{Low} + \text{Close},\;\; \text{-1 if lower, else the previous Trend}\] \[\,\mathrm{d}m = \text{High} - \text{Low}\] \[\text{cm} = \operatorname{cm}(t-1) + \,\mathrm{d}m \;\text{if the Trend is unchanged},\;\; \text{else}\;\; \operatorname{dm}(t-1) + \,\mathrm{d}m\] \[\text{Volume Force} = \text{Volume} \cdot \left|\frac{2 \cdot \,\mathrm{d}m}{\text{cm}} - 1\right| \cdot \text{Trend} \cdot 100\] \[\text{KVO} = \operatorname{EMA}(\text{Volume Force},\; \text{short\_window}) - \operatorname{EMA}(\text{Volume Force},\; \text{long\_window})\] \[\text{Signal Line} = \operatorname{EMA}(\text{KVO},\; \text{signal\_window})\]

Klinger designed it to follow the long-term flow of money while staying sensitive to short-term reversals: the KVO crossing its signal line, or diverging from price at a new high or low, is the usual signal. Its level is in units of volume and depends on how many shares trade, so it is not comparable across tickers.

Also known as: KVO, Klinger Oscillator, Klinger Volume Force.

Example · AAPL, MSFT · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_klinger_volume_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_klinger_volume_oscillator().xs("AAPL", level=1, axis="columns")

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

How did the Klinger Volume Oscillator of Apple move against its signal line in 2025?

Which returns:

Parameters

get_klinger_volume_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”, in which case the open, high and low prices are adjusted for dividends in the same way."Close"
short_windowintThe number of periods for the short-term EMA of the volume force. Defaults to 34.34
long_windowintThe number of periods for the long-term EMA of the volume force. Defaults to 55.55
signal_windowintThe number of periods for the signal line. Defaults to 13.13
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 Klinger, S.J. (1997). “Identifying Trends With Volume Analysis.” Technical Analysis of Stocks & Commodities, 15(12).
  • Library Referenced against TA-Lib’s KVO
  • Library Referenced against Tulip Indicators’ kvo
Share