Before you begin: Complete SMA, Ichimoku alignment and pivot-confirmation lessons.
Calculate a declared displaced difference
Separate display coordinate from availability
Avoid using retrospective cycle peaks as early signals
Mechanism and interpretation
DPO compares a displaced price with a moving average to emphasise shorter fluctuations under a chosen convention. This lesson uses DPO at calculation time t = close at t−d minus the n-period SMA ending at t, with d=floor(n/2)+1. The result may be displayed at the earlier coordinate t−d. That display choice aligns the retrospective comparison visually, but the value still requires the later SMA inputs through t.
Different tools may offer centred or uncentred presentations and use different shift conventions. Write the exact indexed formula rather than relying on the label DPO alone. A graph drawn at a past coordinate can look as though a turning point was identified earlier than it actually was. For research, retain calculation time, displayed time and any additional pivot-confirmation time. A peak in the final plotted oscillator is not automatically a real-time signal at its visual location.
Worked case — synthetic data
Synthetic n=10 gives d=6. At calculation bar 50, the ten-period SMA is 100 and close at bar 44 was 103. DPO is 3 and may be plotted at bar 44. Yet the calculation uses observations through bar 50, six bars later. A trade supposedly entered at bar 44 after seeing this DPO value would look ahead. The value can legitimately inform a decision at bar 50 if the strategy explicitly uses that delayed comparison.
At bar 51, suppose the new ten-period SMA is 101 and close at bar 45 was 102. The next DPO value is 1, displayed at 45. The visible decline from 3 to 1 describes the relationship between those earlier prices and their later averaging windows. It does not mean the indicator knew at bar 45 that the real-time market would decline next. A cycle estimate derived from peaks also needs enough subsequent values to confirm those peaks.
Context and failure modes
Removing part of a trend through a moving-average difference does not reveal a stable physical market cycle. Window choice can create apparent periodicity, and retrospective peak selection can overstate predictability. Missing bars and shifts applied twice can produce subtle alignment errors. Validate indices on a small numbered sequence before interpreting charts.
Practice task
Use n=8, current calculation bar 30, SMA 75 and close at bar 25 equal 78. Compute d, DPO, display coordinate and first calculation availability under the stated formula.
Worked practice answer
d=floor(8/2)+1=5. DPO=78−75=3, displayed at 25 if centred. It becomes available at bar 30 when the SMA inputs are complete. The plot's coordinate 25 is not its information timestamp.
Topic assessment
Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.
1. What data makes the bar 50 DPO unavailable at bar 44?
DPO contains volume only
The SMA includes prices through bar 50
The bar 44 close never existed
Reveal answer and explanation
B. Later inputs are required even when the output is drawn at an earlier coordinate.
2. Which formula is used in this lesson?
Current close minus tomorrow's SMA
Highest high minus lowest low
Earlier close minus current trailing SMA
Reveal answer and explanation
C. The indexed definition determines the delay and must be stated explicitly.
3. Does a visually clear retrospective cycle prove a tradable cycle?
No
Yes
Only when the line crosses zero
Reveal answer and explanation
A. Predictive evaluation must respect availability, peak confirmation and execution timing.
Primary references and scope
Original explanation and synthetic calculations. Chart thresholds are explicit research conventions, not exchange rules or proof of predictive ability.