DVI(price, n = 252, wts = c(0.8, 0.2), smooth = 3, magnitude = c(5, 100,
5), stretch = c(10, 100, 2), exact.multiplier = 1)runPercentRank.price or a vector (if
try.xts fails) containing the DVI values.data(ttrc)
dvi <- DVI(ttrc[,"Close"])Run the code above in your browser using DataLab