Still have questions?
Contact support

Chaikin Money Flow (CMF)


Developed by Marc Chaikin, Chaikin Money Flow measures the amount of Money Flow Volume over a specific period. Money Flow Volume forms the basis for the Accumulation Distribution Line. Instead of a cumulative total of Money Flow Volume, Chaikin Money Flow simply sums Money Flow Volume for a specific look-back period, typically 20 or 21 days. The resulting indicator fluctuates above/below the zero line just like an oscillator. Chartists weigh the balance of buying or selling pressure with the absolute level of Chaikin Money Flow. Chartists can also look for crosses above or below the zero line to identify changes on money flow.

Find the mathematical description of the indicator on the Chaikin Money Flow (CMF) Mathematical Description page.

Adding indicator

CMF indicator is added through the cmf() method. It requires a mapping with four fields: "high", "low", "close" and "volume". The following sample demonstrates the CMF indicator applied to a spline series which data values are equal to "close" values.

The indicator values differ too much from the series values, so it is reasonable to build the indicator on a separate plot.

// add data to a table
var dataTable =;

// map loaded data
var mapping = dataTable.mapAs({"high": 1, "low": 3, "close": 4, "volume": 5, "value": 4});

// create stock chart
chart = anychart.stock();

// create plots on the chart
var plot = chart.plot(0);
var plot1 = chart.plot(1);

// create CMF indicator
var cmf = plot1.cmf(mapping).series();

Here is a live sample:

JsFiddle Playground

Indicator parameters

There are three parameters a CMF indicator has, one of them is necessary - the mapping. Two other ones are the period and the series type. The series type can be easily changed any time using the seriesType() method. The following code sample demonstrates a CMF indicator with parameters set as default.

var cmf = plot1.cmf(mapping, 20, "line");


Visualization of an indicator depends on series type. Here is a sample where CMF with different parameters and settings is added to different plots:

// create a CMF indicator with default parameters
cmf_0 = plot_1.cmf(mapping);

// create and adjust the CMF indicator with settings adjusted
cmf_1 = plot_2.cmf(mapping, 35, "area").series();

JsFiddle Playground