Table of Contents

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

emaPeriod int

The period used by both EMA.

sumPeriod int

The sum period.

MassIndex(string, int, int)

Initializes a new instance of the MassIndex class.

public MassIndex(string name, int emaPeriod, int sumPeriod)

Parameters

name string

The name for this instance.

emaPeriod int

The period used by both EMA.

sumPeriod int

The sum period.

Properties

IsReady

Gets a flag indicating when this indicator is ready and fully initialized

public override bool IsReady { get; }

Property Value

bool

WarmUpPeriod

Required period, in data points, for the indicator to be ready and fully initialized.

public override int WarmUpPeriod { get; }

Property Value

int

Methods

Forward(long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(long time, DoubleArray input)

Parameters

time long
input DoubleArray

The 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()