Learn R Programming

quantmod (version 0.4.26)

addROC: Add Rate Of Change to Chart

Description

Add Rate Of Change indicator to chart.

Usage

addROC(n = 1, type = c("discrete", "continuous"), col = "red")

Value

A ROC indicator will be draw in a new window on the current chart. A chobTA object will be returned silently.

Arguments

n

periods

type

compounding type

col

line color (optional)

Author

Jeffrey A. Ryan

Details

See 'ROC' in TTR for specific details and references.

References

see ROC in TTR written by Josh Ulrich

See Also

addTA

Examples

Run this code
if (FALSE) {
addROC()
}

Run the code above in your browser using DataLab