Chaikin Money Flow

View as Markdown

Description

The formula for Chaikin Money Flow is the cumulative total of the Accumulation/Distribution Values for 21 periods divided by the cumulative total of volume for 21 periods.

… Courtesy of StockCharts

Syntax

ChaikinMoneyFlow(int period)

ChaikinMoneyFlow(ISeries\<double\> input, int period)

Returns default value

ChaikinMoneyFlow(int period)[int barsAgo]

ChaikinMoneyFlow(ISeries\<double\> input, int period)[int barsAgo]

Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.

Parameters

ParameterDescription
inputIndicator source data (Series<T>)
periodNumber of bars used in the calculation

Examples

1// Prints the current value of a 20 period ChaikinMoneyFlow using default price type
2double value = ChaikinMoneyFlow(20)[0];
3Print("The current **ChaikinMoneyFlow** value is " + value.ToString());

Source Code

You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.