OptiNod Academy

DPO — Locate recurring cycles rather than predict direction

DPO removes a trend component to reveal past cyclical highs and lows. Its displaced structure makes it unsuitable as an immediate live entry signal.

DPO is a tool for measuring the position and spacing of recurring swings, not for guessing the next direction.


The Detrended Price Oscillator (DPO) aims to remove the trend component from price and reveal cycles. Rather than following the current bar to suggest direction like a typical oscillator, it shifts a moving average back to show the spacing at which past price highs and lows recurred.


For that reason, DPO does not fit well as a real-time buy or sell signal. Its structure does not provide an immediate read of the current price direction. It is closer to a map of the rhythm of recent swings than an arrow promising what price will do next.


DPO is most natural for asking what cycle an instrument has recently followed and where it currently sits in that cycle. Set direction using an EMA, price structure and the higher timeframe. Then use DPO to decide whether it is time to wait for an entry within that direction.


Recurring cycles viewed with DPO
Recurring cycles viewed with DPODPO helps measure the spacing between recent lows and estimate when to watch for the next one.

Removing the trend reveals spacing between swings


In a strong uptrend, most oscillators frequently mark overbought conditions. RSI may stay above 70 while price continues to make higher highs, and Stochastic can produce repeated overbought readings. DPO attempts to remove that broad direction and reveal intermediate swings.


For example, if recent lows recur roughly every 18 to 22 bars, you can estimate when another pullback might appear. DPO is then closer to time management than price prediction. It helps you decide whether you are in a chasing period or a waiting period rather than telling you to enter today.


DPO does not set direction. A cycle low in an uptrend can become a buy candidate; the same low in a downtrend may produce only a brief rebound. Fix the higher-level direction before interpreting DPO.


A DPO low is a time to prepare, not a buy signal


It is risky to buy immediately when DPO approaches a past low region. A repeating cycle is only a clue; a price reversal needs separate confirmation from price structure. A DPO low is less a trade button than a period for preparing a watchlist.


In an uptrend, as DPO approaches that region, check whether price's fall is slowing, whether it reclaims a short-term downtrend line, and whether it closes above the previous short-term high. If none occurs, the cycle low may be taking longer to form.


In a downtrend, treat the same DPO low as a possible point to take partial profits on an existing short or wait for a rebound, rather than as an automatic long. If the rebound stalls at the 20-period EMA or former support, the bearish interpretation may resume.


A cycle setup becomes tradable only with price confirmation


Read a DPO setup in this order: direction, cycle, price confirmation. Direction comes first; DPO identifies a possible cycle-low period; finally price must form a recovery structure.


Entry: The higher timeframe is rising, DPO reaches the zone of the last three cycle lows, and price closes above a short-term downtrend line.Stop: Place it below the low immediately before the breakout.Invalidation: If price falls back below the trendline within three bars of the break, treat the cycle reversal as failed.Management: Near the next expected DPO high period, prioritize taking profits in parts over new entries.


DPO low region and a price breakout
DPO low region and a price breakoutAn entry case develops when DPO is near a cyclical low and price structure begins to recover.

The stop must be tight in this setup. If the thesis is a cycle reversal, failure to recover promptly weakens it. A market that keeps declining while DPO is in a cycle-low region may be breaking its previous rhythm.


The period length is the length of the rhythm you seek


Choosing a DPO period is more than tuning sensitivity: it chooses the cycle you want to see. A 20-period DPO aims to inspect intermediate swings around 20 bars long; a 50-period DPO examines locations in a longer movement.


Set it too short and every small fluctuation looks cyclical. Set it too long and it is late for short-term trading. First count the spacing between visible swing lows on the chart, then choose a DPO period that reflects that spacing.


Avoid changing periods repeatedly to find the best historical fit. Because DPO studies past cycles, it is vulnerable to hindsight optimization. Observe a chosen period by the same standard for at least 50 to 100 bars before deciding whether the repetition is meaningful.


DPO is also plotted with a backward displacement. Treating it as a value on the current bar and trading immediately misuses its structure. It is a way to organize the spacing of past swings and prepare the next observation window, not a line predicting today's price. Confirm any live entry with a price break or recovery bar.


Strong trends normally break old cycles


DPO's trap is assuming cycles always repeat. Markets develop rhythms, but those rhythms can lengthen or shorten at any time. News, trend breakouts and liquidity sweeps often disrupt the old cycle.


A market whose lows recurred every 20 bars may go 35 bars without a pullback after a strong breakout. Taking repeated countertrend positions based only on the old spacing can trap you against the first leg of a new trend. Even if DPO reaches the expected cycle window, wait if price has not formed a recovery structure.


An old cycle breaking during a strong trend
An old cycle breaking during a strong trendNews or a breakout can lengthen or disrupt a cycle; relying only on past spacing is risky.

Define a criterion for declaring the cycle broken. If the expected low window has passed by more than five bars with no price recovery, DPO has fallen deeper than its previous low region, and price has also broken the higher-timeframe direction filter, invalidate the old cycle. Wait for a new rhythm to form.


Keep DPO as a timing tool


DPO has a different job from a trend-following indicator. Determine direction separately with an EMA, ADX and market structure. Use DPO only as supporting information about cycle position to avoid entering too late within that direction.


In an uptrend, prepare buy candidates as DPO approaches a cyclical low and reduce chasing as it approaches a cyclical high. In a downtrend, look for possible rebound shorts. In a range, it can help time mean reversion at the boundaries, but a box narrow relative to ATR may offer little reward compared with risk.


When comparing several timeframes, give the longer one priority for direction. If daily DPO is near a cyclical high while hourly DPO is near a low, there may be a short-term bounce but little room to the target. If the longer timeframe is near a cyclical low and the shorter one forms a recovery, the timing of a pullback buy aligns better.


Ask where price is within a pattern of swings that has been repeating. DPO is poorly suited to predicting direction; used as a timing map, it can reduce chasing and premature entries.


Advanced: DPO centers past swings rather than predicting the current bar


How DPO locates the center of a cycle
How DPO locates the center of a cycleAfter removing the trend, DPO helps locate recurring swing highs and lows.

DPO can be confusing because it looks like an oscillator on a chart. Unlike a typical oscillator, however, it is not structured to read the strength of the current bar directly. It shifts a moving average back by a set number of periods and subtracts it from price, highlighting past swings after removing a trend component.


For that reason, DPO highs and lows are more like a summary of cycles already observed than instant signals for the current bar. Buying as soon as a DPO low appears can misalign the indicator's time axis with the actual order timing. DPO identifies when to prepare; a price breakout or recovery bar should determine entry.


Period choice also goes beyond sensitivity. A 20-period DPO means you are examining a rhythm around 20 bars; a 40-period DPO examines a longer rhythm. Using two periods together can show where a small cycle sits inside a larger one, but more signals require stricter entry conditions.


Use DPO like a calendar. If recent lows were 18 to 22 bars apart, start watching from bar 16. If there is still no price recovery after bar 22, consider the old rhythm broken. DPO answers “is it time to prepare?” The trade itself is confirmed by recovering a trendline, breaking a previous high and defining a stop.

Check a strategy that trades on this indicator

Upload the trade list (CSV) of a TradingView strategy that trades on this indicator, or an MT5 report, to calculate profit, drawdown and the trade distribution. No sign-in is needed to analyze.

Analyze my trade history Explore an example report