Derivative Oscillator

Calculate the Derivative Oscillator: a double-smoothed Relative Strength Index minus its average, which shows the momentum of the RSI itself.

The Derivative Oscillator of Constance Brown (1994) smooths the Relative Strength Index twice with an exponential average and subtracts a simple average of the result, the way the MACD histogram subtracts the signal line from the MACD. It shows the momentum of the smoothed RSI: a crossing of zero marks a turn of the RSI, and the distance from zero how far the smoothed RSI has moved from its mean.

The formula is as follows:

\[\text{Double Smoothed RSI} = \operatorname{EMA}(\operatorname{EMA}(\operatorname{RSI}(\text{Close},\; \text{window}),\; \text{first\_window}),\; \text{second\_window})\] \[\text{Derivative Oscillator} = \text{Double Smoothed RSI} - \operatorname{SMA}(\text{Double Smoothed RSI},\; \text{signal\_window})\]

Brown uses a 14-period RSI, smoothed over 5 and then 3 periods, and a 9-period signal.

Also known as: DOSC, Brown’s Derivative Oscillator.

Example · AAPL, MSFT · 2024 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_derivative_oscillator()

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

How did the Derivative Oscillator of Apple and Microsoft move in 2025?

Which returns:

Parameters

get_derivative_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 of the RSI. Defaults to 14.20
first_windowintThe number of periods of the first EMA of the RSI. Defaults to 5.5
second_windowintThe number of periods of the second EMA. Defaults to 3.3
signal_windowintThe number of periods of the SMA subtracted from the smoothed RSI. Defaults to 9.9
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 Derivative Oscillator. 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 Brown, C.M. (1994). “The Derivative Oscillator: A New Approach for an Old Problem.” MTA Journal, 42.
  • Paper Brown, C.M. (1999). “Technical Analysis for the Trading Professional.” McGraw-Hill.
  • Library Referenced against TA-Lib’s DOSC
Share