Direct Answer

Detrended Price Oscillator is a trend measure used to describe trend direction, persistence, strength, or a smoothed price reference. The production page must define the exact calculation convention before interpreting higher or lower readings, because platform and provider implementations can differ.

By Swoopr Editorial Team AI-assisted research, human-verified

Detrended Price Oscillator: Formula, Meaning, Signals, Examples and How to Use It

How Is Detrended Price Oscillator Calculated?

Removes the trend by comparing price with a displaced simple moving average, making cycle highs and lows in price easier to see. The average is shifted back by half its length so it lines up with the middle of its window.

Formula: DPO = Close(t) - SMA(Close, n) shifted back n/2 + 1 periods

Inputs:

Worked example. A close of 52.4 against a displaced 20-period average of 50.9 gives a DPO of 1.50. The inputs are illustrative numbers, not market data.

Reading it. Peaks and troughs of the oscillator are used to estimate the length of price cycles. Above zero means price is above the displaced average and below zero below it. It is not designed to follow the current trend.

Limits. The displaced average uses data from the past only for alignment, so the latest DPO value is not a clean trend signal. It is meaningful only if cycles exist, and its output depends on the period chosen.

Indicator overview

AttributeValue
CategoryTrend
Asset classesStocks, ETFs, Indexes, Futures, Forex, Crypto, Commodities
Output typeLine/scalar
ParametersVaries by implementation; document exact settings on use

What is Detrended Price Oscillator?

Detrended Price Oscillator is a trend measure used to describe trend direction, persistence, strength, or a smoothed price reference. The production page must define the exact calculation convention before interpreting higher or lower readings, because platform and provider implementations can differ.

For Swoopr, the canonical profile separates definition, calculation, interpretation and decision use. That keeps readers from collapsing a descriptive metric into a trading strategy. An indicator can describe trend, momentum, volatility, participation, positioning or risk without providing a complete entry, exit, sizing or portfolio decision.

What does it measure?

Detrended Price Oscillator measures specific market properties in the Trend domain. The practical value is repeatability: the same inputs and formula can be applied across a defined dataset, allowing users to compare readings through time or across instruments when the calculation convention is held constant.

How to read Detrended Price Oscillator

Interpretation depends on the market property being measured. A descriptive reading is not automatically predictive. The same numerical state can lead to different outcomes in a strong trend, quiet range, event-driven gap or illiquid market. Always combine with context from price structure, volume, and broader market regime before drawing conclusions.

Strengths

Weaknesses and limitations

Editorial and risk note

This page is educational content, not individualized investment advice. It should not imply guaranteed prediction, accuracy or outperformance. Where multiple valid definitions exist, Swoopr states the alternatives and the reason for selecting its primary convention.

Frequently Asked Questions

Is Detrended Price Oscillator a buy or sell signal?

No. Peaks and troughs of the oscillator are used to estimate the length of price cycles. The displaced average uses data from the past only for alignment, so the latest DPO value is not a clean trend signal. A trade built on it still needs a trigger, an invalidation rule, a position size and realistic execution assumptions.

What is the best setting for Detrended Price Oscillator?

Detrended Price Oscillator takes these inputs: closing prices; moving average period n (20 is common); displacement of n/2 + 1 bars. There is no universal best setting for the tunable ones, so test them across instruments, regimes and out-of-sample periods and favor stable parameter regions over one historical winner.

Can Detrended Price Oscillator be used by itself?

The displaced average uses data from the past only for alignment, so the latest DPO value is not a clean trend signal. It is meaningful only if cycles exist, and its output depends on the period chosen. For that reason it is read next to measures of direction, participation, valuation, liquidity and risk, not alone.

Does Detrended Price Oscillator work on every timeframe?

The calculation (DPO = Close(t) - SMA(Close, n) shifted back n/2 + 1 periods) can be run on any bar size, but behavior is not portable: a reading on a five-minute chart describes a very different market window from the same reading on a daily chart. Validate the exact timeframe before relying on it.

Why does Detrended Price Oscillator give false signals?

The oscillator is in price units, so a level of 5 means different things for a 20-dollar stock and a 200-dollar stock. Peaks and troughs on the line are identified by eye, so two readers can mark different cycle lengths from the same chart. Lag, noise and regime changes add to this, because market participants react to new information after the reading is calculated.

How should Detrended Price Oscillator be backtested?

Rebuild Detrended Price Oscillator from closing prices using point-in-time data, write the rules before testing, include delisted securities where relevant, model realistic fills and costs, reserve a validation sample and compare with a simpler baseline.

Swoopr Editorial Team

The Swoopr Editorial Team produces independent investment education, research, and tools for understanding markets, evaluating opportunities, and managing risk. All content is educational only and does not constitute personalized investment advice.

See our editorial policy and corrections policy.