Skip to content
All library documents

Using the Detrended Price Oscillator for Short-Term Trend Changes

Article MQL5 code base

Summary

The Detrended Price Oscillator (DPO) compares price with a simple moving average shifted by half its period plus one bar. It appears in a separate chart pane and is intended to highlight short-term price waves within a longer trend. The described MetaTrader indicator lets users set the moving-average period and calculation range, and optionally configure pop-up, email, or push alerts on either the latest closed candle or the unfinished candle.

The main signal is a cross of the DPO and its zero line, which may indicate a trend change. Because the indicator lags, anticipating a cross may be more useful than reacting after it occurs. The text also suggests looking for divergence: a lower DPO high alongside a double top in price may flag a possible major reversal. It cautions that the DPO is not highly accurate as a standalone trading tool and is better suited to short-term trend confirmation. No backtest, performance figures, or rules for validating signals are provided.

Key ideas

  • The DPO compares price with a shifted simple moving average to emphasize shorter price waves.
  • A zero-line cross can signal a possible short-term trend change, though the indicator is lagging.
  • A lower DPO high against a price double top may indicate bearish divergence.
  • The document recommends using the DPO for confirmation rather than relying on it as a direct trading system.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.