Visual Basic (Declaration) | |
---|---|
Overloads Public Shared Function MoneyFlowIdxOverPeriod( _ ByVal seriesName As String, _ ByVal s As Series, _ ByVal lengthOfPeriod As Integer _ ) As Series |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static Series MoneyFlowIdxOverPeriod( string seriesName, Series s, int lengthOfPeriod ) |
Parameters
- seriesName
- The name of the series which will be displayed on the chart, i.e. its label.
- s
- An series where the first element is the high in the last trading period, the second term is the high in the previous period and so on.
- 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: