|
|
|
Log In | Sign Up | ||
Detrended Price Oscillator (DPO)The Detrended Price Oscillator (DPO) removes the longer trend from prices so the shorter cycles underneath are easier to see. It compares price with a moving average that has been shifted back by half its length, which lines the average up with the middle of the window it covers. What remains are the short swings above and below that centered average: their highs, lows and spacing. The DPO is a tool for studying cycles and stretched prices, not a trend or timing indicator. How it is calculatedn = period (20 by default) shift = n / 2 + 1 (11 bars for n = 20) DPO = close − SMA(close, n) as it stood shift bars ago Centered form: DPO = close shift bars ago − SMA(close, n) today Both lines describe the same thing: how far price was from the average of the bars around it. The first form compares today’s close with an older average; the second compares an older close with today’s average, which puts the close in the middle of the 20-bar window. Charting packages use one or the other, so the same DPO can appear shifted by about half a period. Our How to read it
Settings and common mistakes
Live chart: SPY (S&P 500 ETF), daily, with the Detrended Price Oscillator (20). The chart updates every trading day. Screen for it on MarketInOutThe DPO is exch(nyse,nasdaq) and type(stock) and price > 1 and advol(21) > 1 and price > sma(200) and dpo(20) < 0 and dpo(20) > dpo(20)@1 and dpo(20)@1 < dpo(20)@2 and rsi(14) < 50 The first form of the formula can be written directly. Stocks above their 200-day average whose close just moved above the 20-day SMA as it stood 11 bars ago, the classic DPO crossing above zero: exch(nyse,nasdaq) and type(stock) and price > 1 and advol(21) > 1 and price > sma(200) and c > sma(20)@11 and c@1 < sma(20)@12 Related: Moving averages, Overbought and oversold, Price Rate of Change. |
Disclaimer - Privacy Policy - Terms of Service - Cookies - FAQ - Affiliates - Blog |