Invest in equities, F&O and upcoming IPOs effortlessly by opening a demat account online. Enjoy a free subscription for the first year with Bajaj Broking
Know the benefits of a demat account
Free Demat account in minutes | Low brokerage | Online account opening
In summary
- The detrended price oscillator (DPO) is a technical indicator used to identify historical price cycles by removing longer-term price trends.
- DPO focuses on short- to medium-term price movements rather than trend direction.
- Traders may use DPO to identify peaks, troughs, and recurring market patterns.
- DPO differs from RSI and MACD because it is designed for cycle analysis rather than momentum or trend strength.
- Understanding DPO calculations and limitations may help beginners interpret technical charts more effectively.
- Technical indicators involve limitations and should be viewed alongside broader market analysis.
Technical indicators play an important role in market analysis for Indian investors and traders. They provide structured ways to study price movement, identify patterns, and understand market behaviour over time. Different indicators serve different purposes, ranging from measuring momentum to detecting trends and analysing price cycles.
One such technical analysis tool is the detrended price oscillator (DPO). The DPO is designed to remove long-term price trends so that shorter-term market cycles become easier to observe. Rather than focusing on whether prices are rising or falling overall, the indicator concentrates on identifying recurring price patterns.
Understanding how the DPO works may help beginners build familiarity with technical chart interpretation. This article explains the concept, formula, calculation method, and practical applications of the DPO in a neutral and educational manner.
What Is the Detrended Price Oscillator (DPO)?
How stochastic oscillator can help your investment?
The detrended price oscillator (DPO) is a technical indicator that removes long-term trends from price data to highlight shorter-term price cycles. It helps analysts focus on historical patterns by filtering out broader market direction.
Unlike trend-following indicators, the DPO attempts to isolate cyclical movement. This allows traders to identify recurring highs and lows that may appear within a market cycle.
The DPO oscillates above and below a zero line:
- Positive values indicate prices are above the displaced moving average
- Negative values indicate prices are below the displaced moving average
- Zero-line crossings may indicate shifts in short-term price behaviour
The indicator does not forecast future prices. Instead, it is used to analyse historical price movements and identify repeating patterns.
How DPO differs from RSI and MACD
The DPO serves a different purpose from other popular indicators:
| Indicator | Primary purpose | Focus area |
|---|---|---|
| DPO | Price cycle identification | Historical cyclical movement |
| RSI | Momentum measurement | Overbought and oversold conditions |
| MACD | Trend and momentum analysis | Moving average convergence and divergence |
The relative strength index (RSI) measures the speed and magnitude of price changes. The moving average convergence divergence (MACD) indicator examines momentum and trend relationships.
The DPO, by contrast, removes trend influence to emphasise cyclical behaviour. Because of these differences, some traders use multiple indicators together for broader analysis.
How Is the Detrended Price Oscillator Calculated? DPO Formula
The DPO formula compares historical price data with a displaced moving average.
DPO = Price\;\left(\frac{X}{2}+1\right)\;periods\;ago - X\text{-period Simple Moving Average
Where:
- Price (X/2 + 1 periods ago): Historical closing price shifted backwards
- X-period simple moving average (SMA): Average closing price over a selected period
- X: Number of periods selected for calculation
The displacement component removes longer-term trend influence and helps highlight shorter-term cycles.
Example calculation
Suppose an investor uses a 20-day DPO setting:
Step 1: Calculate the 20-day simple moving average.
Assume the 20-day SMA equals ₹1,250.
Step 2: Calculate displacement.
Displacement formula:
(20 ÷ 2) + 1 = 11
Step 3: Identify the closing price from 11 trading sessions earlier.
Assume the closing price was ₹1,285.
Step 4: Calculate DPO.
DPO = ₹1,285 − ₹1,250
DPO = +35
The positive reading suggests the historical price sits above its displaced moving average.
Current IPO
How to Use the DPO Indicator: Identifying Price Cycles
Calculating the DPO involves a structured process.
Step 1: Select the period length
Common settings include:
- 20 periods
- 21 periods
- 30 periods
Shorter settings may capture smaller market cycles, while larger settings may identify broader cyclical patterns.
Step 2: Calculate the simple moving average
Add closing prices across the selected period and divide by the total number of observations.
Example:
If a stock closes at various levels across 20 sessions, calculate the average closing price.
Step 3: Determine displacement
Use:
Displacement = (Selected period ÷ 2) + 1
For a 20-period setting:
(20 ÷ 2) + 1 = 11
Step 4: Identify historical price value
Locate the closing price from the displaced period.
Step 5: Subtract SMA from displaced price
The result becomes the DPO value.
Charting platforms often automate this calculation. However, understanding the process may help beginners interpret indicator readings more effectively.
Common DPO settings used in Indian market analysis
Some traders analysing Indian equity markets may experiment with:
- 20-day DPO for shorter-term cycle analysis
- 30-day DPO for broader cycle identification
- Multiple timeframe analysis to observe different price rhythms
Settings vary based on market conditions, asset type, and analytical approach.
DPO vs RSI vs MACD: How the DPO Differs from Other Oscillators
Understanding the functional differences between indicators may improve technical analysis interpretation.
DPO
Focuses on:
- Historical price cycles
- Peak and trough identification
- Trend removal
RSI
Focuses on:
- Momentum measurement
- Relative price strength
- Potential overbought and oversold conditions
RSI generally operates within a scale between 0 and 100.
MACD
Focuses on:
- Trend direction
- Momentum changes
- Moving average relationships
MACD uses moving averages to identify changes in momentum and trend structure.
How they may complement one another
Different indicators measure different market characteristics.
For example:
- DPO may help identify cyclical behaviour
- RSI may provide momentum context
- MACD may assist trend evaluation
Some traders combine multiple indicators to obtain broader analytical perspectives. However, no indicator eliminates market uncertainty.
DPO Trading Strategy for Indian Markets: Settings and Signals
The DPO is primarily a cycle-analysis indicator rather than a trend-following system.
Beginners studying Indian markets may encounter several educational applications.
Identifying recurring cycles
A trader examining an Indian equity index may observe repeating price swings occurring over similar time intervals.
The DPO may help visualise those historical cycles.
Peak and trough observation
Positive DPO values may coincide with historical highs.
Negative values may align with historical lows.
These observations are historical interpretations rather than predictive signals.
Combining DPO with broader analysis
Some traders use technical indicators alongside:
- Volume analysis
- Support and resistance levels
- Broader trend analysis
- Market news and company fundamentals
Relying exclusively on one indicator may create incomplete market interpretations.
Behavioural considerations for beginners
Technical analysis involves uncertainty.
Beginners should consider:
- Market volatility may produce false signals
- Indicators behave differently across market conditions
- Emotional decision-making may influence interpretation
- Risk management remains important in market participation
Learning indicator limitations can be as valuable as understanding their strengths.
Risks and limitations
The DPO has limitations:
- It focuses on historical prices
- It may produce delayed observations
- Performance varies across market environments
- Cycles may change unexpectedly
No technical indicator guarantees outcomes or removes investment risk.
Start investing today
Open Demat Account
Open Trading Account
Margin Trading Facility
Key takeaways
- The DPO removes longer-term trends to highlight shorter-term price cycles.
- It is designed for cycle analysis rather than trend forecasting.
- The calculation compares displaced historical prices against a simple moving average.
- DPO differs from RSI and MACD because each indicator serves distinct analytical purposes.
- Historical patterns may not repeat consistently.
- Technical indicators should be interpreted alongside broader market context and risk awareness.
Upcoming IPO
Pro Tip
Related Articles
Frequently Asked Questions
Detrended Price Oscillator (DPO)
What is the detrended price oscillator (DPO)?
The detrended price oscillator (DPO) is a technical indicator that removes long-term price trends to highlight short-term market cycles. It helps traders identify cyclical peaks and troughs and estimate cycle duration. Unlike trend indicators, DPO focuses on historical price patterns and does not indicate overall trend direction.
How is the DPO calculated? What is the DPO formula?
The DPO formula is: Price ((X ÷ 2) + 1) periods ago minus the X-period simple moving average (SMA). A common setting uses X = 20, creating an 11-period displacement. The price shift removes longer-term trend influence, causing the DPO line to appear several bars behind current prices.
How do you use the DPO indicator in trading?
The DPO is added below a price chart to analyse market cycles. Traders measure the distance between peaks or troughs to estimate cycle length. Some traders use DPO troughs for studying entry timing during uptrends and peaks for reviewing exits, often alongside trend indicators.
How is the DPO different from RSI and MACD?
The DPO removes trend influence to focus on price cycles and is plotted with backward displacement. RSI measures momentum and potential overbought or oversold conditions, while MACD evaluates trend and momentum. Unlike RSI and MACD, DPO does not show trend direction and is often paired with trend tools.
How do you identify market cycles using the DPO?
Market cycles can be studied by measuring the periods between DPO peaks or troughs. Peak-to-peak or trough-to-trough analysis helps estimate dominant cycle length. Traders may then adjust the DPO lookback period closer to that cycle duration to improve visibility of recurring historical patterns.
What are the best DPO settings for Indian stocks?
A 20-period DPO on daily charts is a common starting point for analysing Indian indices and large-cap stocks. Settings can be adjusted depending on observed cycle behaviour and trading objectives. Some traders also combine DPO with trend indicators and price action analysis for broader market evaluation.
Disclaimer
Standard Disclaimer
Investments in the securities market are subject to market risk, read all related documents carefully before investing.
Broking services offered by Bajaj Financial Securities Limited (Bajaj Broking). Reg Office: Bajaj Auto Limited Complex, Mumbai –Pune Road Akurdi Pune 411035. Corporate Office: Bajaj Financial Securities Limited, 1st Floor, Mantri IT Park, Tower B, Unit No 9 & 10, Viman Nagar, Pune, Maharashtra 411014. SEBI Registration No.: INZ000218931 | BSE Cash/F&O/CDS (Member ID:6706) | NSE Cash/F&O/CDS (Member ID: 90177) | DP registration No: IN-DP-418-2019 | CDSL DP No.: 12088600 | NSDL DP No. IN304300 | AMFI Registration No.: ARN –163403.
Details of Compliance Officer: Mr. Boudhayan Ghosh (For Broking/DP/Research) | Email: compliance_sec@bajajbroking.in | Contact No.: 020-4857 4486. For any investor grievances write to compliance_sec@bajajbroking.in/ compliance_dp@bajajbroking.in (DP related)
This content is for educational purpose only. Securities quoted are exemplary and not recommendatory.
Research Services are offered by Bajaj Broking as Research Analyst under SEBI Regn: INH000010043.
For more disclaimer, check here: https://www.bajajbroking.in/disclaimer