Price, volume, etc. series that is coercible to xts or matrix.
n
Number of periods for moving average.
maType
A function or a string naming the function to be called.
shift
The number of periods to shift the moving average.
percent
logical; if TRUE, the percentage difference between the
slow and fast moving averages is returned, otherwise the difference between
the respective averages is returned.
…
Other arguments to be passed to the maType function.
Value
A object of the same class as x or a vector (if try.xts
fails) containing the DPO values.
Details
The Detrended Price shows cycles and overbought / oversold conditions.