The Detrended Price Oscillator (DPO) is a technical indicator designed to remove the long-term trend from price data — isolating shorter-term cyclical price patterns and making it easier to identify recurring price cycles, peaks, and troughs. Unlike most oscillators that compare current price to recent price action, the DPO compares the closing price to a moving average that has been shifted back in time by half the period plus one bar — effectively detrending the data by removing the direction of the primary trend. The resulting oscillator oscillates above and below zero, with peaks and troughs representing the underlying cyclical behaviour of the security independent of the overall trend direction. DPO is particularly useful for identifying the dominant cycle length in a security — the distance between consecutive peaks or troughs reveals how frequently the price completes a full oscillation, which can be used to time entries and exits within the established cycle. In Indian equity markets, DPO is used by cycle analysts studying Nifty 50 medium-term cycles, helping to identify whether the market is in a high or low phase of its price cycle independently of the primary bull or bear trend.