Class MoneyFlowIndex
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
The Money Flow Index (MFI) is an oscillator that uses both price and volume to measure buying and selling pressure
Typical Price = (High + Low + Close)/3 Money Flow = Typical Price x Volume Positive Money Flow = Sum of the money flows of all days where the typical price is greater than the previous day's typical price Negative Money Flow = Sum of the money flows of all days where the typical price is less than the previous day's typical price Money Flow Ratio = (14-period Positive Money Flow)/(14-period Negative Money Flow)
Money Flow Index = 100 x Positive Money Flow / ( Positive Money Flow + Negative Money Flow)
public class MoneyFlowIndex : TradeBarIndicator, IIndicator, IUpdatable
- Inheritance
-
MoneyFlowIndex
- Implements
- Inherited Members
- Extension Methods
Constructors
MoneyFlowIndex(int)
Initializes a new instance of the MoneyFlowIndex class
public MoneyFlowIndex(int period)
Parameters
periodintThe period of the negative and positive money flow
MoneyFlowIndex(string, int)
Initializes a new instance of the MoneyFlowIndex class
public MoneyFlowIndex(string name, int period)
Parameters
namestringThe name of this indicator
periodintThe period of the negative and positive money flow
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
NegativeMoneyFlow
The sum of negative money flow to compute money flow ratio
public IndicatorBase NegativeMoneyFlow { get; }
Property Value
PositiveMoneyFlow
The sum of positive money flow to compute money flow ratio
public IndicatorBase PositiveMoneyFlow { get; }
Property Value
PreviousTypicalPrice
The current and previous typical price is used to determine positive or negative money flow
public double PreviousTypicalPrice { get; }
Property Value
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public override int WarmUpPeriod { get; }
Property Value
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe input given to the indicator
Returns
- DoubleArray
A new value for this indicator
Reset()
Resets this indicator to its initial state
public override void Reset()