Learn R Programming

quantmod (version 0.4.25)

addCCI: Add Commodity Channel Index

Description

Add Commodity Channel Index

Usage

addCCI(n = 20, maType="SMA", c=0.015)

Value

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

Arguments

n

periods to use for DX calculation

maType

moving average type

c

Constant to apply to the mean deviation.

Author

Jeffrey A. Ryan

Details

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

References

see CCI in TTR written by Josh Ulrich

See Also

addTA

Examples

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

Run the code above in your browser using DataLab