CMO
Recent gains against recent losses, from -100 (all down) to 100 (all up).
Chande Momentum Oscillator = 100 × (sum of up changes − sum of down changes) ÷ (sum of up changes + sum of down changes) over the last length changes of the source, −100 to 100. Ready at length + 1 candles; not ready when every change is 0. Mirror: signed (a mirrored price swaps up and down changes).
Settings
| Setting | Default | Range | What it does |
|---|---|---|---|
| length | 14 | 1 to 500 | Changes in the window. |
What it gives
| Output | What it is |
|---|---|
| cmo | CMO, −100–100. |
What it reads
It reads open, high, low, close, hl2, hlc3, ohlc4, hlcc4, close by default.
Warm-up
With its default settings, CMO needs 15 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.
Test it
Copy this sentence into the Algonney chat to backtest it:
Backtest a strategy on BTC that uses CMO with its default settings