indicator · own pane · open source

Chaikin Money Flow indicator

Chaikin Money Flow is a free open-source indicator. Chaikin Money Flow is the ratio of accumulation-flow volume to total volume over the… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What Chaikin Money Flow does

Chaikin Money Flow is the ratio of accumulation-flow volume to total volume over the lookback — bounded around zero, with +0.2 and -0.2 as common signal thresholds.

  • Sustained CMF > 0.2 = strong accumulation.
  • Sustained CMF < -0.2 = strong distribution; rallies on the failed CMF tend to die fast.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Chaikin Money Flow", overlay=false)
len = input.int(20, "Length", minval=2, maxval=200)
colorMid = input.color("color.orange", "Color  Mid")
colorUp = input.color("color.green", "Color  Up")
colorDown = input.color("color.red", "Color  Down")
colorNeutral = input.color("color.gray", "Color  Neutral")
mfm = high == low ? 0.0 : ((close - low) - (high - close)) / (high - low)
mfv = mfm * volume
cmf = ta.sma(mfv, len) / ta.sma(volume, len)
hline(0.2, "Strong buy", color=colorUp)
hline(-0.2, "Strong sell", color=colorDown)
hline(0, "Zero", color=colorNeutral)
p_CMF = plot(cmf, "CMF", color=colorMid, linewidth=2)
alertcondition(ta.crossover(cmf, 0.2), "CMF bullish", "CMF crossed above 0.2 — strong accumulation")
alertcondition(ta.crossunder(cmf, -0.2), "CMF bearish", "CMF crossed below -0.2 — strong distribution")

Comments

No comments yet.

Sign in to comment.