- The Derivative Oscillator applies a four-stage signal processing pipeline to extract momentum inflection points: RSI via Wilder's smoothing, double...
The Derivative Oscillator applies a four-stage signal processing pipeline to extract momentum inflection points: RSI via Wilder's smoothing, double EMA smoothing of the RSI, an SMA signal line of the double-smoothed result, and finally the difference between the smoothed RSI and its signal. The histogram output crosses zero at momentum turning points, offering earlier signals than raw RSI by isolating the rate of change of the smoothed momentum rather than the momentum level itself.
## Historical Context
Constance Brown introduced the Derivative Oscillator in her 1994 work on advanced oscillator techniques, positioning it as a refinement of standard RSI analysis. The core insight was that RSI levels alone provide trend information but not inflection information: a rising RSI at 60 tells you momentum is bullish, but not whether it is accelerating or decelerating. By taking what amounts to the "derivative" of RSI (via the difference between the double-smoothed RSI and its moving average), the oscillator isolates the acceleration component. The double-EMA smoothing stage was borrowed from MACD-style signal extraction, while the final SMA subtraction mirrors the MACD histogram concept. Brown's original parameters (RSI 14, EMA1 5, EMA2 3, Signal 9) were calibrated for daily equity charts and remain the standard defaults. The indicator found adoption among fixed-income and commodity traders where RSI divergence analysis is common but requires confirmation of momentum turning points.
## Architecture & Physics
### Four-Stage Pipeline
1.**Stage 1: Wilder RSI.** Standard RSI using Wilder's RMA smoothing ($\alpha = 1/\text{rsiPeriod}$) for average gain and average loss. Output range: 0-100.
2.**Stage 2: First EMA.** Exponential moving average of the RSI output with $\alpha_1 = 2/(\text{ema1Period} + 1)$. This removes high-frequency RSI noise while preserving the momentum signal.
3.**Stage 3: Second EMA (double smoothing).** A second EMA with $\alpha_2 = 2/(\text{ema2Period} + 1)$ applied to the Stage 2 output. The double smoothing creates a zero-lag-adjusted smoother that tracks RSI trends with minimal overshoot.
4.**Stage 4: SMA signal line.** A simple moving average of the double-smoothed RSI, implemented via circular buffer with running sum for O(1) updates. The SMA period controls the signal line's responsiveness.
### Output
The Derivative Oscillator is the difference: $\text{DOSC} = \text{EMA2}(\text{EMA1}(\text{RSI})) - \text{SMA}(\text{EMA2}(\text{EMA1}(\text{RSI})))$. Zero crossings mark momentum inflection points. Positive values indicate accelerating RSI; negative values indicate decelerating RSI.