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
fullPeriodintThe full period.
MomersionIndicator(int?, int)
Initializes a new instance of the MomersionIndicator class.
public MomersionIndicator(int? minPeriod, int fullPeriod)
Parameters
MomersionIndicator(string, int?, int)
Initializes a new instance of the MomersionIndicator class.
public MomersionIndicator(string name, int? minPeriod, int fullPeriod)
Parameters
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
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public override int WarmUpPeriod { get; }
Property Value
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
timeWindowIReadOnlyWindow<long>windowIReadOnlyWindow<DoubleArray>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()