Skip to content
All library documents

Using the Detrended Price Oscillator for Short-Term Trend Signals

Article MQL5 code base

Summary

The Detrended Price Oscillator (DPO) compares price with a simple moving average shifted back by roughly half its period plus one bar. It is intended to make shorter price waves within a longer trend easier to see, and is plotted in a separate chart window. The document describes configurable settings for the moving average period, calculation history, and alert timing and delivery.

It presents two possible readings: a move across the zero line as a trend-change signal, and divergence between price swings and DPO swings as a possible reversal clue. An example describes price making a double top while DPO forms a lower high. The document cautions that DPO lags and is not very accurate as a standalone trading signal, so it may be more useful for short-term confirmation. It supplies no performance tests, entry or exit rules, or risk controls, and the divergence example is illustrative rather than evidence of predictive reliability.

Key ideas

  • DPO compares price with a shifted simple moving average to emphasize shorter price waves.
  • A zero-line cross is presented as a possible signal of a short-term trend change.
  • Price and DPO divergence may help identify a potential reversal.
  • The indicator lags, limiting its reliability as a direct trading signal.

Tags

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