The Detrended Price Oscillator removes the trend in prices by subtracting a moving
average of the price from the price. The Detrended Price shows cycles and overbought/oversold
conditions. Note that the calculation shifts the results (shift = term / 2 + 1)
periods, so the last shift periods will be zero.
Formula: