Money Flow Index (MFI)
Created by Quong and Soudack, the Money Flow Index is a price-volume oscillator that shows buying and selling momentum. [Discuss] 💬
// C# usage syntax
IEnumerable<MfiResult> results =
quotes.GetMfi(lookbackPeriods);
Parameters
lookbackPeriods
int
- Number of periods (N
) in the lookback period. Must be greater than 1. Default is 14.
Historical quotes requirements
You must have at least N+1
historical quotes to cover the warmup periods.
quotes
is a collection of generic TQuote
historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See the Guide for more information.
Response
IEnumerable<MfiResult>
- This method returns a time series of all available indicator values for the
quotes
provided. - It always returns the same number of elements as there are in the historical quotes.
- It does not return a single incremental indicator value.
- The first
N
periods will havenull
MFI values since they cannot be calculated.
MfiResult
Date
DateTime
- Date from evaluated TQuote
Mfi
decimal
- Money Flow Index
Utilities
See Utilities and helpers for more information.
Chaining
Results can be further processed on Mfi
with additional chain-enabled indicators.
// example
var results = quotes
.GetMfi(..)
.GetRsi(..);
This indicator must be generated from quotes
and cannot be generated from results of another chain-enabled indicator or method.