Indicators

Detrended Price Oscillator (DPO) Indicator Explained

How the DPO removes trend to expose the market's cycle, how to measure cycle length with it, and how to automate DPO in Setup.Cash.

By Setup.Cash TeamLast updated 2026-07-031 min read192 words

Featured image placeholder

/og/setup-cash-og.svg

The Detrended Price Oscillator (DPO) subtracts a displaced moving average from price — deliberately removing the trend so only the cycle remains. It isn't for trend signals at all: it's a magnifying glass for the market's rhythm.

How It Works

  • Price minus an SMA shifted back (N/2 + 1) bars.
  • The displacement aligns the average with the cycle it's removing.
  • Peaks and troughs in DPO reveal the market's dominant cycle length.

How to Trade It

Measure the bar distance between DPO troughs to estimate cycle length, then time entries near projected cycle lows in the direction of the trend you removed. DPO extremes also work as short-horizon overbought/oversold in flat markets.

Building It in Setup.Cash

Add Detrended Price Oscillator (DPO) in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. Ehlers' Even Better Sinewave automates the cycle-phase reading. For the full category overview, see the advanced momentum library guide.

Momentum signals are timing tools — combine them with a trend or regime filter and backtest the exact rules before going live.

Not financial advice. Trading involves risk. Use backtesting and paper trading before risking real capital.

Related Posts

View all

Indicators

Awesome Oscillator Indicator Explained

How Bill Williams' Awesome Oscillator compares 5- and 34-period midpoint momentum, with saucer and twin-peaks signals, in Setup.Cash.

2 min read · 210 words

Indicators

Balance of Power Indicator Explained

How Balance of Power scores each bar's buyer-vs-seller control from open, close, high, and low, and how to automate BOP in Setup.Cash.

2 min read · 208 words

Indicators

Bias Indicator Explained

How the Bias indicator measures percent deviation of price from its moving average, and how to automate mean-distance rules in Setup.Cash.

1 min read · 200 words

Start here

Build your trading bot workflow with structure

Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.