Spread bets and CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 70% of retail investor accounts lose money when trading spread bets and CFDs with this provider. You should consider whether you understand how spread bets and CFDs work, and whether you can afford to take the high risk of losing your money.
Spread bets and CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage.

A trader's guide to the detrended price oscillator

The detrended price oscillator (DPO) helps traders identify overbought and oversold markets. Here, we explain the DPO and some of the trading strategies associated with it.

What is the detrended price oscillator (DPO)?

The detrended price oscillator (DPO) is an indicator that attempts to filter out short-term price trends to highlight the broader, underlying cycles of price movement. It uses a zero line in the centre, either side of which price trends are plotted according to a comparison of overbought and oversold areas.

The detrended price oscillator is lagging by nature; it is based on waiting for a movement to occur before opening a position. DPO is calculated as the difference between the past price of an asset (at a specific time) relative to its simple moving average (SMA). Any figure higher than the SMA suggests that the DPO is in overbought territory, and vice versa.

Overbought areas are highlighted in green above the zero line and oversold areas are shown in red below the zero line. The below price graph has an example of the detrended price oscillator indicator and how it maps price movement above and below the zero line.


If the detrended price oscillator is above the zero line, it can be interpreted as a bullish sign, because the price is above its normal moving average. Some traders choose to go long as soon as the DPO moves above the zero line. The opposite is also true – when the oscillator moves below the zero line, traders interpret it as a bearish sign and often choose to go short.

Remember that the detrended price oscillator should not be used in isolation when trying to confirm a signal. You should take the necessary steps to manage your risk, such as adding stops and limits, and do thorough technical analysis of the market you’re trading.

Detrended price oscillator formula

The detrended price oscillator formula is:


So, to calculate the DPO, first determine what your lookback period will be. If you are looking at a weekly chart, use weekly periods – for example 28 weeks. Then, find the closing price using the formula. Using the example of 28 weeks, you will need to take the closing price from 15 weeks ago ([28 weeks/2] + 1 week ago), then subtract the simple moving average for the last 28 weeks.

When using IG’s trading platform, you do not need to plot the DPO yourself, as this can be done by the click of a button. Try the platform by signing up for a demo account.

How to trade using the detrended price oscillator

Follow these steps to trade using the detrended price oscillator:

  1. Create an IG account or log in to your existing account
  2. Enter the asset you want to trade in the search bar
  3. Right click on the chart and select ‘Detrended price oscillator’ under ‘Indicators’
  4. Select ‘buy’ or ‘sell’ in the deal ticket
  5. Enter your position size and add stops and limits
  6. Confirm the trade

If you’re new to trading, you need to understand the basics of financial markets and indicators before trading the DPO. You can start by visiting IG Academy for free online trading modules.

Detrended price oscillator trading strategies

Some detrended price oscillator strategies include:

  1. DPO crossover and candlestick patterns
  2. DPO and volume

DPO crossover and candlestick patterns

Combining the crossover of the detrended price oscillator over the zero line with candlestick patterns is one way to confirm a buy or sell signal. A buy signal comes when the oscillator crosses above the signal line, while a sell signal comes when the oscillator crosses below the signal line. The crossover signal should be supported by the candlestick pattern moving in the same direction.

For example, if the DPO moves above the zero line and the candlestick pattern is also suggestive of a bullish trend, the signal may be confirmed. The same will apply for bearish crossovers and price action.

If price action breaks the trend or the detrended price oscillator crosses the zero line in the opposite direction, you may want to close the trade.

See which candlestick patterns signal bullish or bearish patterns

DPO and volume

Because volume indicators show the degree of market activity, they can help you to identify price trends that correlate with the DPO signal. The strategy is to place trades based on the DPO during high or increasing volumes and avoid price oscillator signals during low trade volumes.

Start trading today – open a live IG trading account

It is not recommended to build a trading strategy on the detrended price oscillator alone. Rather test signals against other indicators and use stops and limits when you trade.

Detrended price oscillator summed up

  • The DPO attempts to highlight broader, underlying cycles of price movement
  • If the DPO is above the zero line, it can be interpreted as a bullish sign, and some traders choose to go long
  • If the DPO is below the zero line, it can be interpreted as a bearish sign, and some traders choose to go short
  • Some of the most popular trading strategies involving the DPO are crossovers and volume trading

Try using the detrended price oscillator on a demo account or sign up for an IG trading account if you’re ready to take on the live markets.

Publication date : 2020-03-27T07:42:56+0000


This information has been prepared by IG, a trading name of IG Markets Limited. In addition to the disclaimer below, the material on this page does not contain a record of our trading prices, or an offer of, or solicitation for, a transaction in any financial instrument. IG accepts no responsibility for any use that may be made of these comments and for any consequences that result. No representation or warranty is given as to the accuracy or completeness of this information. Consequently any person acting on it does so entirely at their own risk. Any research provided does not have regard to the specific investment objectives, financial situation and needs of any specific person who may receive it. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and as such is considered to be a marketing communication. Although we are not specifically constrained from dealing ahead of our recommendations we do not seek to take advantage of them before they are provided to our clients. See full non-independent research disclaimer and quarterly summary.

Discover how to trade the markets

Explore the range of markets you can trade – and learn how they work – with IG Academy's free ’introducing the financial markets’ course.

What is the number one mistake traders make?

We reveal the top potential pitfall and how to avoid it. Discover how to increase your chances of trading success, with data gleaned from over 100,00 IG accounts.


For more info on how we might use your data, see our privacy notice and access policy and privacy webpage.

You might be interested in…

Find out what charges your trades could incur with our transparent fee structure.

Discover why so many clients choose us, and what makes us a world-leading provider of spread betting and CFDs.

Stay on top of upcoming market-moving events with our customisable economic calendar.