The detrended price oscillator (DPO) aims to eliminate an intermediate or long term trend and show variations around that trend. It’s calculated on a given N days using today’s close and a past simple moving average (see Simple Moving Average),
DPO = close - SMA over N days, as at N/2+1 days ago
This is somewhat similar to momentum (see Momentum and Rate of Change), but instead of taking the close N days ago, an average (the SMA) of N days surrounding that point is used.
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2016, 2017 Kevin Ryde
Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.