Class MassIndex
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
The Mass Index uses the high-low range to identify trend reversals based on range expansions. In this sense, the Mass Index is a volatility indicator that does not have a directional bias. Instead, the Mass Index identifies range bulges that can foreshadow a reversal of the current trend. Developed by Donald Dorsey.
public class MassIndex : BarIndicator, IIndicator, IUpdatable
- Inheritance
-
MassIndex
- Implements
- Inherited Members
- Extension Methods
Constructors
MassIndex(int, int)
Initializes a new instance of the MassIndex class.
public MassIndex(int emaPeriod = 9, int sumPeriod = 25)
Parameters
MassIndex(string, int, int)
Initializes a new instance of the MassIndex class.
public MassIndex(string name, int emaPeriod, int sumPeriod)
Parameters
namestringThe name for this instance.
emaPeriodintThe period used by both EMA.
sumPeriodintThe sum period.
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { 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()