cmo
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.cmo(source: ArrayLike, period: int = 14) -> np.ndarrayChande momentum oscillator: up moves against down moves over period bars, -100 to 100.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 14 |
Indicator: Chande momentum oscillator
0 when nothing moved in the window. The first value is on bar period.
Classpython
forge.ta.CMO(**inputs: Any) -> NoneUp moves against down moves over a period, from -100 to 100.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 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.