Skip to content

Detrended Price Oscillator (DPO)

OVERVIEW

The Detrended Price Oscillator (DPO) is a technical analysis indicator available in the Tapeboard terminal that removes long-term price trends from a chart to isolate short-term cycles and overbought/oversold extremes. By stripping out the broader directional bias, the DPO reveals the rhythmic peaks and troughs of an asset's price movement independent of the overarching macro trend.

The indicator oscillates above and below a zero line. Peaks correspond to short-term price highs and troughs correspond to short-term price lows. Because the DPO is displaced into the past, it functions as a cycle measurement tool rather than a forward-looking signal generator.

Note

The DPO does not reach the right edge of the chart by design. It cannot produce real-time crossover signals and should not be used as a standalone entry trigger.


CALCULATION

The DPO measures the distance between a past closing price and a simple moving average (SMA) shifted forward by half the lookback period plus one bar. The standard lookback is 20 periods.

Variable Definition Default Value
Lookback Period (N) Number of periods used for the SMA 20
Displacement (N / 2) + 1 11 periods
DPO Value Close from (N/2 + 1) periods ago − SMA(N) —

Formula

DPO = Close[(N/2 + 1) periods ago] − SMA(N periods)

Using the close from 11 periods ago causes the indicator to ignore the most recent 11 bars of price action. This displacement aligns the moving average with the historical price cycle, effectively detrending current price from the historical mean.


HOW TO USE

Cycle Length Measurement

Measure the horizontal distance between consecutive DPO peaks to determine the exact duration of an asset's price cycle. Once the cycle length is established, project forward to anticipate future cyclical highs and lows.

Overbought and Oversold Identification

Use DPO extremes to identify short-term overbought and oversold conditions independent of the primary trend.

DPO Reading Interpretation
High positive value Short-term price cycle at a peak; potential pullback zone
Near zero Price near its short-term mean
High negative value Short-term price cycle at a trough; potential bounce zone

Worked Example

On a daily MSFT chart with a 20-period DPO, the stock is trending at $420. The indicator looks back at the close from 11 days ago ($400) and compares it against the 20-period SMA at that point ($395).

DPO = $400 − $395 = +$5

The DPO prints +$5. Despite the current $420 price, the indicator reveals that 11 days ago price was $5 above its short-term mean. A swing trader observing that each DPO peak near +$5 has preceded a 3-day pullback can use this pattern for timing entries.

Tip

Combine the DPO with a trend-following indicator such as a moving average or MACD to establish directional bias before acting on DPO cycle signals.


LIMITATIONS

Limitation Detail
No live edge signal Displaced into the past; cannot generate real-time crossover signals
Late execution risk Using DPO for live entries results in delayed trade execution
Not a reversal predictor A DPO crossing below zero indicates a cyclical trough, not a bear market
Trend-blind by design Must be paired with trend tools to determine directional context

Note

A common misconception is that the DPO predicts trend reversals. The indicator explicitly removes the trend. A DPO below zero means a short-term cyclical trough is present within the larger trend, not that a downtrend has begun.