Learn R Programming

TTR (version 0.2)

CMO: Chande Momentum Oscillator

Description

The Chande Momentum Oscillator (CMO) is a modified RSI. Developed by Tushar S. Chande.

Usage

CMO(x, n=14)

Arguments

x
Price, volume, etc. series that is coercible to xts or matrix.
n
Number of periods to use.

Value

  • A object of the same class as x or a vector (if try.xts fails) containing Chande Momentum Oscillator values.

Details

The CMO divides the total movement by the net movement ([up - down] / [up + down]), where RSI divides the upward movement by the net movement (up / [up + down]).

References

The following site(s) were used to code/document this indicator: http://www.fmlabs.com/reference/CMO.htm

See Also

See RSI.

Examples

Run this code
data(ttrc)
  cmo <- CMO(ttrc[,"Close"])

Run the code above in your browser using DataLab