The weight given to the smoothed returns (magnitude) component
and the up/down days (stretch) component, respectively.
smooth
The number of periods to smooth price.
magnitude
A set of 3 periods used to smooth magnitude.
stretch
A set of 3 periods used to smooth stretch.
Value
A object of the same class as price or a vector (if try.xts
fails) containing the DVI values.
Details
The DVI combines smoothed returns over different time windows and the
relative number of up versus down days (stretch) over different time
windows.
References
The following site(s) were used to code/document this indicator:
http://cssanalytics.wordpress.com/2009/12/13/what-is-the-dvi/http://marketsci.wordpress.com/2010/07/27/css-analytics%E2%80%99-dvi-indicator-revealed/