Systemicbeta

Chaikin Money Flow

systemic:core-cmfIndicators

Inputs

NameTypeDescription
WindowWhole numberThe number of bars over which the CMF is calculated (for example, 20).
Price HighNumber seriesThe series of high prices, one value per bar.
Price LowNumber seriesThe series of low prices, one value per bar.
Price CloseNumber seriesThe series of closing prices, one value per bar.
VolumeNumber seriesThe series of trading volume, one value per bar.

Outputs

NameTypeDescription
CMFNumber seriesThe Chaikin Money Flow for each bar: the net flow of money into or out of the asset over the window, between -1 and +1.

Cost

7
credits per run
1,000
bars

0.214 + 0.00629·n credits for n bars, rounded up. The marks are each plan's limit of bars.

A guide to the Chaikin Money Flow (CMF) indicator: measuring volume-weighted buying and selling pressure, confirming trends, and spotting reversals in traditional and crypto markets.


Overview

The Chaikin Money Flow (CMF) is a volume-based indicator developed by Marc Chaikin. It combines price and volume to measure the flow of money into and out of an asset over a window of bars. CMF helps assess the strength of buying or selling pressure, confirm trends, and spot possible reversals or divergences.

Why CMF matters:

  • Volume-weighted insight: Combines price and volume, showing the conviction behind price moves.
  • Trend confirmation: Confirms the strength of uptrends and downtrends.
  • Divergence detection: Identifies early signs of trend exhaustion or reversal.
  • Cross-asset utility: Works on stocks, ETFs, commodities, and cryptocurrencies.
  • Pairs well with other indicators: Complements price-only or momentum indicators.

Quick links:


How It Works

CMF measures the accumulation and distribution of an asset. It looks at where the close falls within each bar's range and weights it by volume. The result is a value between -1 and +1 (some charting platforms show it as -100 to +100).

Formulas

1. Money Flow Multiplier (MFM):

MFM=(Close−Low)−(High−Close)High−Low\text{MFM} = \frac{(\text{Close} - \text{Low}) - (\text{High} - \text{Close})}{\text{High} - \text{Low}}

2. Money Flow Volume (MFV):

MFV=MFM×Volume\text{MFV} = \text{MFM} \times \text{Volume}

3. Chaikin Money Flow (CMF):

CMF=∑MFV over n periods∑Volume over n periods\text{CMF} = \frac{\sum \text{MFV over n periods}}{\sum \text{Volume over n periods}}

Where nn is the window in bars (commonly 20 or 21). If a bar's high equals its low, its MFM is 0.

Calculation Flow

flowchart TD
    Price[High, Low, Close, Volume] --> MFM[Calculate Money Flow Multiplier]
    MFM --> MFV[Calculate Money Flow Volume]
    MFV --> SumMFV[Sum MFV over n periods]
    Price --> SumVol[Sum Volume over n periods]
    SumMFV --> CMF[Compute CMF]
    SumVol --> CMF

Interpretation and Use Cases

Typical Ranges

  • CMF values: Range from -1 to +1. Positive = buying pressure; negative = selling pressure.
  • Zero line: Crossing above/below zero can signal shifts in market pressure.

Signal Logic

  • Positive CMF: Sustained buying pressure; supports uptrends.
  • Negative CMF: Sustained selling pressure; supports downtrends.
  • Divergence: Price makes new high/low but CMF does not—potential reversal.
  • Zero Cross: CMF crossing zero can confirm trend direction or signal a regime shift.

Use Case 1: Stock Trend Confirmation

  • Scenario: S&P 500 stock in an uptrend, CMF remains positive for several weeks.
  • Interpretation: Shows steady buying pressure, which supports the uptrend.
  • Reference: Fidelity: CMF in Stock Trading

Use Case 2: Crypto Divergence Signal

  • Scenario: Bitcoin price makes a new high, but CMF fails to confirm and turns negative.
  • Interpretation: Bearish divergence; possible exhaustion of buying pressure and risk of reversal.
  • Reference: Binance Academy: CMF in Crypto

Use Case 3: Entry/Exit Timing

  • Scenario: Ethereum CMF crosses above zero as price breaks out of consolidation.
  • Interpretation: Confirms breakout with volume; potential entry point.

Use Case 4: Multi-Indicator System

  • Scenario: CMF turns positive while RSI is oversold and price breaks above a moving average.
  • Interpretation: Strong buy signal; multiple confirmations increase conviction.

Decision Flow Example

flowchart TD
    S[New CMF Value] --> A{CMF > 0?}
    A -->|Yes| B[Buying Pressure]
    A -->|No| C{CMF < 0?}
    C -->|Yes| D[Selling Pressure]
    C -->|No| E[Neutral/No Signal]

CMF in Multi-Indicator Systems

CMF is often combined with:

  • Momentum indicators (e.g., RSI, MACD): Confirm price moves with volume.
  • Trend indicators (e.g., moving averages): Filter CMF signals by trend direction.
  • Volatility indicators (e.g., ATR): Avoid false signals in low-volatility regimes.
flowchart LR
    A[CMF Signal] --> B{Trend Confirmed?}
    B -->|Yes| C{Momentum Confirmed?}
    C -->|Yes| D[High Conviction Trade]
    C -->|No| E[Moderate Conviction]
    B -->|No| F[Wait or Ignore]

Data Notes & Practical Usage

  • Period: CMF works on any bar period (daily, hourly, etc.), but signals are more reliable on longer periods.
  • Window selection: 20 or 21 is standard. A shorter window gives more signals and more noise; a longer one gives smoother, slower signals.
  • Asset class: Crypto and small caps may show more erratic CMF swings than large-cap stocks.
  • Pitfalls: CMF can whipsaw in choppy/range-bound markets; combine with trend/volatility filters.
  • Volume data: In crypto, volume is split across exchanges and can be unreliable, so treat CMF with more care.

Missing Data (Closed-Market Bars)

A bar with an empty high, low, close, or volume (a weekend, holiday, or data gap) is empty in the output. CMF never assumes a neutral value or carries the last value forward. The sums run over the N most recent bars with data, so weekends are bridged: Friday sits next to the following Monday. The bars before the window is full are empty; with a window of 20, the first value is on the 20th bar with data. A bar where high equals low has a Money Flow Multiplier of 0, which is a real value, not a missing one. If the total volume of a window is zero, the CMF is empty.


Conceptual CMF Regime Distribution

In most markets, CMF spends most of the time near the zero line and moves less often into strongly positive or negative territory. This pie chart shows a typical distribution (actual values vary by asset and period):

pie title Conceptual CMF Regime Distribution
    "Neutral (-0.1 to 0.1)" : 60
    "Positive (>0.1)" : 20
    "Negative (<-0.1)" : 20

Note: This chart is conceptual and for illustration only. Actual regime frequencies will vary by market and period.


Historical Context: CMF Regimes

stateDiagram-v2
    [*] --> Neutral
    Neutral: -0.1 < CMF < 0.1
    Neutral --> Positive: CMF > 0.1
    Positive --> Neutral: CMF drops below 0.1
    Neutral --> Negative: CMF < -0.1
    Negative --> Neutral: CMF rises above -0.1
    Positive --> Negative: Sharp reversal
    Negative --> Positive: Sharp reversal

Practical Example

Suppose you have the following for a 5-day window:

  • Day 1: High = 10, Low = 8, Close = 9, Volume = 1000
  • Day 2: High = 11, Low = 9, Close = 10, Volume = 1200
  • ...

Step 1: Calculate MFM for Day 1:

MFM1=(9−8)−(10−9)10−8=1−12=0\text{MFM}_1 = \frac{(9 - 8) - (10 - 9)}{10 - 8} = \frac{1 - 1}{2} = 0

Step 2: Calculate MFV for Day 1:

MFV1=0×1000=0\text{MFV}_1 = 0 \times 1000 = 0

Step 3: Calculate CMF over 5 days:

  • Sum MFV = ...
  • Sum Volume = ...
  • CMF = Sum MFV / Sum Volume
DayHighLowCloseVolumeMFMMFV
11089100000
211910120000
.....................

Implementation & Backtesting Notes

  • Data hygiene: Use consistent price and volume sources; avoid look-ahead bias.
  • Parameter tuning: Backtest different windows for your asset and period; 20 is a starting point.
  • Risk management: Use CMF with stop-losses and position sizing; avoid trading every signal in choppy markets.
  • Combine with other indicators: CMF is best as part of a system, not standalone.

Comparison: CMF vs. Other Volume/Price Indicators

IndicatorMeasuresOutputBest For
CMFVolume-weighted price pressure-1 to +1Trend confirmation, divergence
OBVCumulative volume by directionLineTrend, volume confirmation
MFIPrice and volume momentum0–100Overbought/oversold, reversals
Accum/DistPrice-volume flowLineAccumulation/distribution
  • CMF divides by total volume, so its values stay between -1 and +1 and are less distorted by volume spikes.
  • OBV is simpler but can be noisy in volatile markets.
  • MFI is more sensitive to overbought/oversold conditions.
  • Accumulation/Distribution follows price-volume flow but is not normalized.

Glossary

  • Money Flow Multiplier (MFM): Measures where the close falls within the bar's range
  • Money Flow Volume (MFV): MFM multiplied by volume
  • CMF: Ratio of MFV sum to total volume over the window
  • Divergence: When price and indicator move in opposite directions
  • Accumulation/Distribution: Buying/selling pressure inferred from price and volume
  • Backtesting: Simulating a strategy on historical data to evaluate performance

References and Further Reading


Indicator Assessment

---
config:
  xyChart:
    width: 600
    height: 400
  themeVariables:
    xyChart:
      plotColorPalette: "#1abc9c, #e74c3c"
---
xychart-beta horizontal
    title "Chaikin Money Flow Assessment (Scale: 1-10)"
    x-axis ["Popularity", "Reliability", "Complexity", "Versatility", "Recent Interest"]
    y-axis "Score" 0 --> 10
    bar [7, 7, 5, 7, 6]
    bar [6, 5, 5, 7, 7]

Legend: First bar (teal) = Equities/Forex | Second bar (red) = Cryptocurrency

Dimension Explanations

DimensionEquities/ForexCryptoRationale
Popularity76Well-established indicator from Marc Chaikin. Available on most platforms. Less common in crypto-native tools.
Reliability75Effective when volume data is accurate. Crypto volume data can be fragmented or unreliable (wash trading, fragmented exchanges).
Complexity55Requires understanding of MFM, MFV, and volume weighting. Moderate learning curve.
Versatility77Works across all liquid markets with reliable volume data. Useful for trend confirmation and divergence.
Recent Interest67Steady interest in traditional markets. Growing adoption in crypto as traders seek volume-based confirmation.

For best results, use CMF with other indicators and sound risk management, and always test your strategy on historical data first.

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5