DPO (Detrended Price Oscillator) — what it is and how to use it in trading
Definition
DPO (Detrended Price Oscillator) removes the longer-term trend from price by comparing the current price to a backward-shifted moving average, isolating the shorter cyclical swings underneath it.
How it works in the builder
The dpo operand takes a period parameter (default 20) — the average's period, shifted back roughly half a period before comparing it to price. It returns a value in price units, oscillating around zero.
What it looks like on the chart
Drawn as a separate panel, a line oscillating around zero — unlike MACD or TRIX, it is not meant to read the overall trend, only its cyclical deviations from it.
Typical use
Used to spot local cycle peaks and troughs independent of the broader trend, rather than as a trend or momentum filter. Typical condition: dpo(20) crossed_below 0 as a signal of a local pullback within a wider move.
Common pitfalls
Because the average is shifted backward, DPO is not built for as straightforward "real-time" trading as MACD by design — it suits analyzing historical cyclicality better than a clean-cut entry signal on the current bar.
This block is available in the strategy builder
137 no-code blocks — build an entry condition with this term and test it on history
Historical results do not guarantee future ones. The service is an informational and analytical tool, not an individual investment recommendation; trades are not executed.