# Chaikin Money Flow

Chaikin Money Flow is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Chaikin Money Flow sums close location value multiplied by volume over a lookback window and divides by total volume for the same window, producing an oscillator around zero that reflects whether closes tend to fall in the upper or lower part of each bar's range. The default length is 20 periods. This build follows Marc Chaikin's standard formula directly, with no smoothing or alterations.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 13, 2020.
- Access: free.
- Concepts: [Chaikin Money Flow](https://www.luxalgo.com/library/concept/chaikin-money-flow/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=dxnsbo84fl60w6z1m2r3nhs7
- Page: https://www.luxalgo.com/library/indicator/chaikin-money-flow/

The **Chaikin Money Flow** is a volume oscillator that measures whether closes are consistently finishing in the upper or lower part of each bar's range, and how much volume stands behind that tendency. Each bar's close location value (+1 at the high, -1 at the low) is multiplied by volume, summed over a lookback window, and divided by the same window's total volume. The result oscillates around a dashed zero line inside a -1 to +1 bound. This build follows Marc Chaikin's standard formula directly, with the classic 20-period length and no smoothing or alterations.

## How to Trade the Chaikin Money Flow?

- **CMF above zero**: closes keep landing in the upper half of their ranges with volume behind them: net accumulation, more persistent the longer it holds.
- **CMF below zero**: the opposite condition: closes clustering toward the lows, net distribution.
- **Zero Line cross**: the balance flipping. Crosses are noisy in ranging tape, so many traders demand a margin beyond zero or a few bars of follow-through.
- **Divergence**: fresh price highs while CMF sinks toward or under zero question the volume behind the advance; the mirror applies at lows.

CMF only sees where each close sits inside its own bar, so use it to confirm and filter price-structure signals rather than as a standalone trigger.

## Chaikin Money Flow Settings

- **Length** (default 20): the lookback over which money flow volume and total volume are summed. Shortening it makes the line cross zero far more often; lengthening steadies it but registers shifts later.

## Alerts

Two alert conditions ship with the script: **Zero Cross Up**, firing when CMF crosses above zero, and **Zero Cross Down**, firing when it crosses below.

## Frequently Asked Questions

### How is Chaikin Money Flow different from the Chaikin Oscillator?

Both build on the same money flow arithmetic, but CMF averages flow over a rolling window and stays inside -1 to +1, while the Chaikin Oscillator takes a fast-minus-slow EMA difference of the cumulative Accumulation/Distribution Line, an unbounded momentum reading rather than a bounded pressure gauge.

### What length should I use for Chaikin Money Flow?

The 20-period default is the classic choice on any timeframe. Shorter windows respond quickly but whipsaw around zero; longer windows filter noise at the cost of lag. Match the window to the trades it is meant to confirm.

### What is the main limitation of Chaikin Money Flow?

Movement between bars never enters the sum, because the multiplier only measures where the close sits between the bar's own high and low. A market can jump higher overnight yet print negative CMF if sellers control each session afterward, so cross-check against price on gap-prone instruments.

## Related indicators

- [Oscillator Matrix](https://www.luxalgo.com/library/indicator/luxalgo-oscillator-matrix/) (Money Flow Index): markdown at https://www.luxalgo.com/library/indicator/luxalgo-oscillator-matrix.md
- [LuxAlgo - Screener (OSC)](https://www.luxalgo.com/library/indicator/luxalgo-screener-osc/) (Money Flow Index): markdown at https://www.luxalgo.com/library/indicator/luxalgo-screener-osc.md
- [Delta ZigZag](https://www.luxalgo.com/library/indicator/delta-zigzag/) (Weis Wave Volume): markdown at https://www.luxalgo.com/library/indicator/delta-zigzag.md
- [Price Zone Oscillator](https://www.luxalgo.com/library/indicator/price-zone-oscillator/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/price-zone-oscillator.md
- [OBV Divergence](https://www.luxalgo.com/library/indicator/obv-divergence/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/obv-divergence.md
- [Smart Money Index](https://www.luxalgo.com/library/indicator/smart-money-index/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/smart-money-index.md
- [Trade Volume Index](https://www.luxalgo.com/library/indicator/trade-volume-index/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/trade-volume-index.md
- [Volume Flow Indicator](https://www.luxalgo.com/library/indicator/volume-flow-indicator/) (Volume & Order Flow): markdown at https://www.luxalgo.com/library/indicator/volume-flow-indicator.md

---

Source: https://www.luxalgo.com/library/indicator/chaikin-money-flow/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
