Detrended Price Oscillator - Identifying Cycles Amid Market Trends

Detrended Price Oscillator – Identifying Cycles Amid Market Trends

Detrended Price Oscillator measures wider, underlying cycles in an asset’s price movements. To calculate this indicator, add its price minus one period displaced moving average (price +2 + 1 + simple moving average x periods).

This indicator highlights historical peaks and troughs, helping traders to estimate buy/sell levels that match with what has been revealed through this analysis. It should be used in combination with other indicators as well as possessing an in-depth knowledge of security being traded.


The detrended price oscillator removes price trends to estimate price cycles more accurately by emphasizing peaks and troughs rather than trend changes, such as with other indicators such as MACD or Stochastic Oscillator.

This indicator uses a simple moving average shifted by (n/2)+1 periods in order to remove prices’ existing trend and identify long-term cycles more accurately. While its movement may not be as fast as other moving averages, this tool still serves its purpose well in identifying long-term trends and cycles.

Cycle bottoms provide excellent opportunities to buy during an overall uptrend; when an indicator reaches its peak it can signal when selling opportunities should arise. It should be remembered that indicators may range in value due to being stuck in time; therefore they do not give an accurate representation of current trends.

Traders can utilize a detrended price oscillator in combination with other indicators to increase trading accuracy. For instance, pairing up the crossing of a detrended price oscillator above or below zero with candlestick patterns may provide an effective means of validating trade signals.

The MT4 Detrended Price Oscillator is an indicator which uses the lookback period defined in MetaTrader Indicators menu and can be configured to display as its own window in MetaTrader 4. You can configure alerts upon crossing of zero level by accessing this indicator from Indicators window of Charts window MT4, selecting Detrended Price Oscillator from list, configuring push notification or native alert when indicator crosses above/below zero line and saving trading system as alert when crossing of Zero Level occurs.


The detrended price oscillator helps identify broad price trends by eliminating short-term price movements and making it easier to spot wider trends. When used alongside other indicators, this oscillator can help identify overbought and oversold conditions, as well as reveal any cycles in an asset’s price movement.

This indicator uses a displaced moving average, meaning cycles shorter than the look-back period are excluded from calculation. The moving average is calculated as the price of an asset x/2 + 1 periods ago less an X-period simple moving average and then its resultant value is shifted leftward so as to coincide with peak and trough prices of assets.

One way of using this indicator is to search for buy signals that correspond with oscillator troughs – for instance, every 1.5-2 months for currency pairs could offer this opportunity – thus giving traders who wish to exploit cyclical pricing an edge in the market.

Another method for using this indicator is to use sell signals that coincide with oscillator peaks. For instance, stock prices often experience periodic surges every four or five months as illustrated in the chart below.

Trading off of just the detrended price oscillator alone can be risky. To increase chances of success and avoid using DPO signals during low trading volumes periods, traders are advised to test DPO signals against other indicators and use risk management strategies, including stops and stop-loss limits when trading DPO signals. Furthermore, it’s advisable that traders utilize high or rising volumes when trading these DPO signals – this will increase success!


The Detrended Price Oscillator (DPO) is an indicator that removes trend from stock prices by comparing them to its moving average, providing traders with a reliable way to identify cycles and determine overbought or oversold areas more accurately. To calculate DPO, first select how many periods back you would like to examine, such as 10 for daily charts; take closing prices from (X/2) + 1 trading periods ago and subtract simple moving average to obtain your indicator reading.

Detrended Price Oscillator’s lagging nature renders it less reliable for direct trading purposes; however, it can still serve as an useful confirmatory signal – for instance when there is an upward divergence between price chart and DPO that suggests major trend reversal could soon take place.

Another use for the DPO is to identify trading ranges. For instance, when it crosses above or below zero in an upward or downward direction it could signal when to go long or short respectively.

The DPO can also be combined with other indicators to generate more precise signals, for instance when used alongside candlestick patterns to identify reliable buy and sell signals that help traders make informed trades and increase profit potential. It should be remembered, however, that DPO should never be used alone as it cannot replace knowledge of an asset’s fundamentals as well as stop loss/limit order trading strategies.


Detrended price oscillators (DPO) is an indicator designed to isolate cycles with peaks and troughs by filtering out price trends over longer time frames. DPO works by comparing current price to an older moving average to detect cycles with peak and trough cycles without taking into account price movements that occur simultaneously across periods. Furthermore, its use helps traders reliably identify overbought and oversold levels, and highlights cycle highs and lows without considering wider price swings as much.

This approach relies on the idea that it’s easier to spot cycles in an asset when you remove its long-term trends, while shorter cycles tend to have greater influence over buying and selling pressure than their longer-term counterparts.

Calculating a detrended price oscillator (DPO) requires subtracting a moving average from the closing price of an asset, then dividing this figure by the number of periods in your lookback period and dividing by 2. To determine whether this number represents highs or lows, divide by 2 and add 1.

Once you’ve developed the formula for Detrended Price Oscillator (DPO), apply it to a line chart by editing from Chart Tools > Studies and selecting Detrended Price Oscillator; this study is then added to Applied Studies group. If you wish, to manually update indicator manually use Update method either with time/number pair or IndicatorDataPoint instead – for more on manual indicators please see Plotting Indicators


Volatility in trading refers to how much the price of a security fluctuates during any given timeframe. Volatility can either be seen as beneficial or detrimental depending on your investment goals and risk tolerance, so take note of periods when prices become unstable as these may give you the chance to acquire your desired stocks at discounted rates.

The Detrended Price Oscillator (DPO) measures asset price trends to highlight peaks and troughs as well as price cycles between peak to peak or trough to trough, providing more targeted momentum indicators than stochastic or moving average convergence divergence (MACD), without providing information on trend direction.

Traders frequently rely on the DPO to identify opportunities for trading. It does this by isolating troughs and peaks from data analysis and projecting them forward, for instance if the DPO indicates that troughs tend to occur every two months while peaks occur every 1.5 months, traders could look out for buy signals at cycle bottoms while selling signals may emerge when cycle tops arise.

However, it should be remembered that the DPO doesn’t assess trends; rather, it is simply used as a tool for traders to make trading decisions. If prices are in freefall and DPO is below zero line then buying at cycle bottoms may not be wise because they could continue falling shortly; similarly if prices are in an uptrend with DPO above zero then exiting positions at MA close could be wise if price closes below MA at this time.

Check Also

Trend Intensity Index (TII) – Measuring Trend Strength in Unpredictable Markets

TII is an oscillator used to gauge trend strength. Its values range from 0-100; any …