Overview
What is Detrended Price Oscillator (DPO)?
The Detrended Price Oscillator (DPO) is a unique indicator that removes the long-term trend from price action to isolate short-term price cycles. Unlike most oscillators that measure momentum relative to recent price action, the DPO shifts a moving average backward in time and subtracts it from price — effectively "detrending" the data to reveal the natural price cycle.
Formula: DPO = Close − Simple Moving Average(N/2 + 1 periods ago). By using a displaced (shifted back) moving average, the DPO aligns the cycle peaks and troughs with the actual price peaks and troughs — making it easier to identify the cycle length and time entries at cycle lows.
The primary use is cycle timing: count the number of bars between consecutive DPO peaks (or troughs) to determine the dominant cycle length of an instrument. Once the cycle is known, traders anticipate when the next cycle low will occur and position for a bounce. This is particularly valuable for instruments with consistent seasonal patterns or well-defined trading cycles.
DPO also identifies overbought/oversold conditions relative to the cycle: when DPO reaches its historically highest readings, price is at a cycle peak and a correction is likely. When DPO is at its historically lowest readings, price is at a cycle trough and a bounce is expected.
Important note: the DPO is not designed as a momentum indicator for trend trading — it is a cycle analysis tool. Using it to trade against strong trends will result in many premature entries.