R/RcppExports.R
roc.Rd
Rate of Change (ROC)
roc(price, n, type = "c")
A numeric vector of prices
The period for ROC calculation
The type of ROC calculation: 'c' for continuous (default) or 'd' for discrete
A numeric vector containing the ROC values