IndicatorBuilt inOscillators

Detrended Price Oscillator

Use on chart

Loading the chart…

Live chart with this indicator added. Change the symbol and timeframe inside the chart. 00 uses2 views0

What the Detrended Price Oscillator shows

Removes the long-term trend from price by comparing it with an older moving average, to highlight shorter cycles.

The Detrended Price Oscillator removes the trend so that cycles can be studied. It takes a simple moving average of the chosen length and shifts it back by half the length plus one bar. It then subtracts that shifted average from the current price.

Because the average is shifted back, the indicator is not tied to the latest trend and the peaks and troughs of price line up with cycles. Traders measure the distance between repeated peaks or troughs to estimate a cycle length. A line above zero means price is above the older average. The DPO is not a signal indicator for the latest bar, and it is not meant to predict.

The default Period is 21 on the close. Setting it to about the length of the cycle you study works best, for example 20 on a daily chart for a roughly monthly cycle. Shorter periods on intraday charts show faster cycles but in a noisier way.

How to use it

  1. Click Use on chart to add it with the default settings.
  2. Open its settings to set the period close to the cycle you want to study.
  3. Measure the distance between successive peaks or troughs to estimate cycle length.

Settings and what it draws

Settings

InputTypeDefault
PeriodWhole number21
SourcePrice sourceclose

Draws in its own pane

  • DPOLine
  • Zero LineLevel at 0

Comments (0)

    No comments yet. Be the first to say how it worked for you.

    More built-in tools

    See all
    • Majority Rule

      Majority Rule shows the percentage of the last bars that closed higher than the bar before. Majority Rule is a simple measure of how often price has gone up over a recent window, as a percentage of…

      Other 101
    • Historical Volatility

      Shows the annualised standard deviation of log price returns over the last N bars, as a percentage. Historical Volatility measures how much price has actually moved. It takes the logarithm of the…

      Volatility 100
    • Double EMA

      The double exponential moving average: an EMA built to remove part of the lag of a normal EMA. The Double Exponential Moving Average (DEMA) was introduced by Patrick Mulloy. It takes an EMA and an…

      Trend 010