Chande momentum oscillator
Up 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 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| cmo | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- period bars (14 at the defaults)
- Repaints
- No
- Parity
- None
Formula
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.