Detrended Price Oscillator
Removes a displaced moving average to highlight shorter cycles.
Start with the input, not the story.
Price deviation from a shifted trend estimate.
The precomputed zero-centred panel shows DPO after removing a displaced moving average. The key lesson is timing: a beautifully centred historical peak may not have been available when that candle formed.
Check every array index in a custom version. Score each value only from the candle where it was genuinely available.How traders commonly use Detrended Price Oscillator
DPO is best treated as an exploratory cycle-research tool whose indexing and real-time availability are audited before any rule is tested.
Remove a displaced trend estimate to make shorter price cycles easier to inspect.
Keep this job separate from entry timing, stop placement and position size.
A useful counterexample
A visually centred implementation can place information where it was not yet available, making historical turns look cleaner through future leakage.
DPO for exploratory cycles, session structure for timestamps, ATR for scale
Each part has a different job. If two tools answer the same question, remove one and compare the result.
Estimates cycle-like deviation after its index references are verified.
Provides observable, timestamped price structure.
Normalises cycle amplitude.
Follow the same order every time
- Inspect the implementation and list every displaced price and average index.
- Move each DPO value to the candle when all required data was actually available.
- Advance the replay one completed candle at a time.
- Measure cycle amplitude in ATR units and compare it with session structure.
- Reject the implementation if removing future values materially changes its apparent timing.
The indicator is one part of the method
These strategy pages show the market conditions, entry, stop and exit around the indicator.
Range mean reversion
Tests whether qualified boundary excursions revert toward a range midpoint.
- ENTRY
- Enter at the next H1 open after the first qualifying close back inside the frozen range.
- STOP
- Place the stop 0.20 × ATR(14) beyond the excursion extreme and size to 0.50% equity risk, rounded down to 0.01 lot.
- EXIT
- Exit at the frozen range midpoint. If neither stop nor midpoint trades, exit after eight completed H1 bars.
Volatility-targeted momentum
Scales a simple momentum signal so higher-volatility pairs do not dominate risk.
- ENTRY
- At Monday 00:00 UTC, rebalance selected pairs to inverse-60-day-volatility weights, normalised to 10% ex-ante portfolio volatility and then reduced proportionally to satisfy every cap.
- STOP
- No chart stop. Cut a pair to zero at the next daily open if its one-day loss exceeds 3 × its 60-day daily volatility; suspend all new entries for one week if estimated portfolio volatility exceeds 15%.
- EXIT
- At each weekly rebalance, exit a pair that leaves its top/bottom-two rank, loses the 2% absolute-score threshold or breaches a risk rule; otherwise resize to the new capped target weight.
Set up Detrended Price Oscillator on your platform
Match the lesson's period, price input, smoothing and candle timing. Similar names can still produce different values across feeds and platforms.
MT4
Custom code neededA faithful on-chart version needs an MQL4 implementation. Check the source note below when WickAtlas provides one.
MT4 technical analysisWickAtlas MT4 setup guideMT5
Custom code neededA faithful on-chart version needs an MQL5 implementation. Check the download note below before assuming WickAtlas provides one.
MT4 and MT5 comparisonWickAtlas MT5 setup guideTradingView
Built inAvailable in the standard TradingView indicator library. Names and default settings can differ.
TradingView indicatorsWickAtlas TradingView guide“Built in” means the standard platform library contains the underlying indicator. It does not mean its defaults or calculation match every third-party version. Compare the platforms.
Plain-language formula
The same indicator can look slightly different across platforms because the price input, smoothing and rounding may change. Note your settings before comparing two charts.
Where it may help
Exploratory cycle-length research on stationary transformations.
Where it struggles
Real-time trading when implementations use centred or displaced values carelessly.
What to pair it with
Pair it with something that answers a different question, such as volatility or market direction. Try the indicator on its own before adding more tools.
The shortcut to avoid
Using visually centred historical curves that leak future information.
Try this on a chart
Audit every index reference and evaluate only values available at the decision time.