← Back to Home
Trading Signal / Indicator
πŸ’§

Chaikin Money Flow (CMF)

Measure institutional buying and selling pressure using price and volume.

Start Automating Free β†’

Want to automate this strategy? Try auto-Trading free β€” no credit card required.

Chaikin Money Flow (CMF) chart

Overview

What is Chaikin Money Flow (CMF)?

The Chaikin Money Flow (CMF) indicator, developed by Marc Chaikin, measures the amount of money flow volume over a specific period (typically 20 or 21 periods). It combines price location within the daily range with volume to determine whether a security is under accumulation (buying pressure) or distribution (selling pressure).

The calculation involves two steps. First, the Money Flow Multiplier = ((Close βˆ’ Low) βˆ’ (High βˆ’ Close)) Γ· (High βˆ’ Low). This places the close relative to the daily range on a scale from βˆ’1 (close at the low) to +1 (close at the high). Second, the Money Flow Volume = Multiplier Γ— Volume. CMF = Sum of Money Flow Volumes over N periods Γ· Sum of Volumes over N periods.

The result oscillates between βˆ’1 and +1. Values above 0 indicate net buying pressure (accumulation); below 0 indicate net selling pressure (distribution). Sustained CMF above +0.25 signals strong institutional buying; below βˆ’0.25 signals strong distribution. The zero-line crossover is the primary signal.

Divergence is a powerful application: if price makes new highs but CMF fails to confirm (remains in negative territory or declines), it signals that the rally is not backed by real buying pressure β€” a bearish warning. The reverse applies for bullish divergence.

How It Works in auto-Trading

Automate It

auto-Trading computes CMF using configurable periods (default 20). Strategy blocks include: CMF zero-line crossovers, threshold breach alerts (+0.25/βˆ’0.25), and divergence detection against price. CMF is particularly effective as a confirmation filter β€” entries are only taken when CMF is positive (for longs) or negative (for shorts), ensuring institutional money flow aligns with the trade direction.

Try Free β†’

Strategy Code

Pick a script below, copy it, and use it on your chart.

Pine Script (TradingView)

This is a TradingView Pine Script example for this indicator. Paste it into the TradingView Pine Editor, add it to your chart, and adjust inputs for your market and timeframe.

//@version=6
strategy("Chaikin Money Flow (CMF)", overlay=true)
fastLen = input.int(20, "Fast Length")
slowLen = input.int(50, "Slow Length")
fast = ta.ema(close, fastLen)

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

ThinkScript (thinkorswim)

This is a thinkorswim ThinkScript example for this indicator. Open thinkorswim, create a custom study, paste the script, and apply it to your chart.

def cmf = ChaikinMoneyFlow(length = 20);
def buySignal = cmf crosses above 0;
def sellSignal = cmf crosses below 0;
AddOrder(OrderType.BUY_AUTO, buySignal, close, 1, Color.GREEN, Color.GREEN, "CMF Buy");
AddOrder(OrderType.SELL_AUTO, sellSignal, close, 1, Color.RED, Color.RED, "CMF Exit");

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

Ready to automate Chaikin Money Flow (CMF)?

Join thousands of traders who use auto-Trading to execute this strategy automatically, 24/7.

Get Started Free β†’

All Strategies & Signals

Continue Learning

Trading Strategies

Trading Signals & Indicators