# Chande momentum oscillator

`cmo`

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 | Kind |
| --- | --- |
| cmo | value |

Warm-up: period bars (14 at the defaults).

Repaints: No.

## 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.
