Skip to contents

Rate of Change (ROC)

Usage

roc(price, n, type = "c")

Arguments

price

A numeric vector of prices

n

The period for ROC calculation

type

The type of ROC calculation: 'c' for continuous (default) or 'd' for discrete

Value

A numeric vector containing the ROC values