cmo

cmo(series, period)
Parameters
  • series (series) – Input series

  • period (integer) – Input period

Returns

series

Returns the Chande momentum oscillator.

\[\begin{split}\delta &= \mathrm{series} - \mathrm{series}_1\\ h &= \mathrm{sum}(max(\delta, 0), \mathrm{period})\\ l &= \mathrm{sum}(max(-\delta, 0), \mathrm{period})\\ \mathrm{cmo} &= \frac{h-l}{h+l} \times 100\end{split}\]