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

SettingDefaultRangeWhat it does
length141 to 500Changes in the window.

What it gives

OutputWhat it is
cmoCMO, −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