Money Flow Index (MFI)
Previous Topic  Next Topic 

Definition

Courtesy of www.stockcharts.com
Courtesy of www.marketscreen.com

Syntax
MFI(int period)
MFI(IDataSeries inputData, int period)

Returns default value
MFI(int period)[int barsAgo]
MFI(IDataSeries inputData, int period)[int barsAgo]


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


Parameters

period

The number of bars to include in the calculation

inputData

Indicator source data (?)


Examples

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


Source Code
You can open up the indicator source code via the NinjaScript Editor.