As the name implies, the Detrended Price Oscillator (DPO) attempts to eliminate the trends in price through the plotting chart. DPO is based on the fundamental idea that long-term price cycles are made up of short-term cycles. Identifying these short-term components of long-term cycles will be able to help us in finding the major turning points in long-term cycles.
The DPO helps to remove the longer trend from prices. Thus when the long-term trend is removed from price, overbought/ oversold zones in short-term are readily recognizable. DPO can identify the highs and lows and identifies market cycles. You can get this indicator in Zerodha Kite and few other broker’s terminals like Upstox Pro etc.
The Detrended Price Oscillator formula
The formula of this indicator is Price (X/2 + 1) periods ago minus the X-periods simple moving average.
How to attach Detrended Price Oscillator on the charts?
- In Zerodha Kite, you can attach the DPO indicator in a chart from the Studies section. In the Studies section you will find it in the name of Detrended Price Oscillator.
- Once you attach the indicator to the charts, you can see the default parameters.
- By default, DPO uses 14-period for the calculations which can be customized. The default moving average setting is simple, but you can also change it to exponential, time series, triangular, variable, vidya, weighted, welles wilder, hull etc. The default field is close, but once again you can customize it too. Instead of close you can use open, high, low, hl/2, hlc/3, ohlc/4.
You can use the similar settings when you attach this Detrended Price Oscillator into Upstox Pro terminal.
One draw back in the Zerodha charts is that I do not find the DPO in ChartIQ as good as we expect. For trading this indicator I personally like either the Investing.com or the TradingView charts. So for Zerodha traders, I suggest to swith to TradingView charts and attach the indicator on it. In TradingView the default period is 21. Check the image below.
How do you use a Detrended Price Oscillator?
- This indicator can’t identify the trend.
- The tops and bottoms of the indicator is considered as the price cycle length.
- This indicator actually filters out the long-term trends. This helps in identifying short term cycles easily.
- The DPO is an oscillator, so it oscillates around a level (here a zero line). But this generally does not have a defined upper or lower level.
DPO zero line cross
There are 2 main methods to use this technical indicator. The first is to watch the DPO line crossing above or below the zero line. Upward movement is anticipated when the Detrended Price Oscillator indicator crosses above zero and download movement is anticipated when the DPO crosses below zero.
Check the above image where we can see that decent signals can be generated using the DPO zero line crossover. However this is a very basic strategy and can give frequent whipsaws. If you are trading this method you need to keep proper stop loss and a relevant target.
Predicting peaks and troughs with the DPO
Another way of using this indicator is to use it as a predictive tool to measure the length of a trend cycle. This is done by measuring the distance between the peaks and troughs of the indicator and predicting the peaks and troughs in price. An example is that sometimes its seen say a stock shows its trough in every 20-days or every 18 days. So after every 20 day or 18 day we can assume that the indicator has reached its trough and can turn up. This helps a lot in predicting the market cycle.
The DPO indicator creates peaks and troughs in consistent intervals and that is a very easy way to predict the exact turning point in the market. Check in the image above the in Ajanta Pharma share the DPO indicator needed approximately 10 bars to create consecutive troughs. This can give an idea of when the price can change direction.
Divergence in the DPO
The Detrended Price Oscillator can also show divergence between the price and the indicator. Sometimes the price moves on rising but the indicator does not rise. This is a negative divergence and price can change its direction from up to down. Similarly sometimes price continues falling but the indicator does not fall. This is a positive direction and indicates that the market can bounce back. Check the image below.
Conclusion
The Detrended Price Oscillator is neither a momentum indicator nor a trend indicator. Rather it shows the peaks and troughs on the chart. As this is not a trend indicator it is hard to get a buy sell signal based of this indicator alone. But if we know the current trend of the market we can use this indicator for timing our entries. In the Indian charting softwares, TradingView shows a reliable DPO.