Table of Contents

Class MomersionIndicator

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

Oscillator indicator that measures momentum and mean-reversion over a specified period n. Source: Harris, Michael. "Momersion Indicator." Price Action Lab., 13 Aug. 2015. Web. http://www.priceactionlab.com/Blog/2015/08/momersion-indicator/.

public class MomersionIndicator : WindowIndicator, IIndicator, IUpdatable
Inheritance
MomersionIndicator
Implements
Inherited Members
Extension Methods

Constructors

MomersionIndicator(int)

Initializes a new instance of the MomersionIndicator class.

public MomersionIndicator(int fullPeriod)

Parameters

fullPeriod int

The full period.

MomersionIndicator(int?, int)

Initializes a new instance of the MomersionIndicator class.

public MomersionIndicator(int? minPeriod, int fullPeriod)

Parameters

minPeriod int?

The minimum period.

fullPeriod int

The full period.

MomersionIndicator(string, int?, int)

Initializes a new instance of the MomersionIndicator class.

public MomersionIndicator(string name, int? minPeriod, int fullPeriod)

Parameters

name string

The name.

minPeriod int?

The minimum period.

fullPeriod int

The full period.

Exceptions

ArgumentException

The minimum period should be greater of 3.;minPeriod

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(IReadOnlyWindow<long>, IReadOnlyWindow<DoubleArray>, long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(IReadOnlyWindow<long> timeWindow, IReadOnlyWindow<DoubleArray> window, long time, DoubleArray input)

Parameters

timeWindow IReadOnlyWindow<long>
window IReadOnlyWindow<DoubleArray>
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()