Visual Basic (Declaration) | |
---|---|
Overloads Public Shared Function MoneyFlowIdxOverPeriod( _ ByVal sc As SeriesCollection, _ ByVal lengthOfPeriod As Integer _ ) As SeriesCollection |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static SeriesCollection MoneyFlowIdxOverPeriod( SeriesCollection sc, int lengthOfPeriod ) |
Parameters
- sc
- A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
- lengthOfPeriod
- An integer which represents the length of the period over which the indicator will be iteratively evaluated.
Exception | Description |
---|---|
ArgumentException | Thrown if any elements from the arrays high, low, close or volume are strictly negative, or if the length of the arrays is not equal or the lengthOfPeriod is grater than the length of the array high. |
Interpretation
Divergence of the indicator within a continuing trend indicates that a
reversal is imminent. The MFI also is a good means to signal market tops
and bottoms. A reasonable rule is a market top is given more significance
when the MFI is above 80
and a market bottom is given more
significance when the MFI is below 20
.
Evaluation
The Money Flow Index (MFI) is evaluated over a given user defined
number of trading periods. The evaluation of the MFI follows the
below steps: