Chaikin Money Flow

Buying against selling pressure over recent candles, weighted by volume, from -1 to 1.

Chaikin Money Flow = Σ money flow volume ÷ Σ volume over the last length candles, −1 to 1. Not ready when the volume sum is 0 or a flat candle with volume is in the window. Mirror: signed (a mirrored close location flips the flow; volume is unchanged).

Settings

SettingDefaultRangeWhat it does
length201 to 5000Candles summed.

What it gives

OutputWhat it is
cmfCMF, −1–1.

What it reads

It reads the whole candle (open, high, low, close and volume).

Warm-up

With its default settings, Chaikin Money Flow needs 20 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 Chaikin Money Flow with its default settings