addCCI: Add Commodity Channel Index

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Add Commodity Channel Index

Usage

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

Arguments

n

periods to use for DX calculation

maType

moving average type

c

Constant to apply to the mean deviation.

Details

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

Value

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

Author(s)

Jeffrey A. Ryan

References

see CCI in TTR written by Josh Ulrich

See Also

addTA

Examples

1
2
3
4
## Not run: 
addCCI()

## End(Not run)

quantmod documentation built on May 2, 2019, 5:48 p.m.