cmo

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.cmo(source: ArrayLike, period: int = 14) -> np.ndarray

Chande momentum oscillator: up moves against down moves over period bars, -100 to 100.

Parameters

NameTypeDefault
sourceArrayLike
periodint14

Indicator: Chande momentum oscillator

0 when nothing moved in the window. The first value is on bar period.

Classpython
forge.ta.CMO(**inputs: Any) -> None

Up moves against down moves over a period, from -100 to 100.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint141 to 5000

Up is the change when it is positive, Down is minus the change when it is negative

CMO = 100 * (sum of Up - sum of Down) / (sum of Up + sum of Down) over the last period bars

0 when nothing moved.