Class Maximum
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
Represents an indicator capable of tracking the maximum value and how many periods ago it occurred
public class Maximum : WindowIndicator, IIndicator, IUpdatable
- Inheritance
-
Maximum
- Implements
- Inherited Members
- Extension Methods
Constructors
Maximum(int)
Creates a new Maximum indicator with the specified period
public Maximum(int period)
Parameters
periodintThe period over which to look back
Maximum(string, int)
Creates a new Maximum indicator with the specified period
public Maximum(string name, int period)
Parameters
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
PeriodsSinceMaximum
The number of periods since the maximum value was encountered
public int PeriodsSinceMaximum { 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 for 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>The window of data held in this indicator
timelonginputDoubleArray
Returns
- DoubleArray
A new value for this indicator
Reset()
Resets this indicator to its initial state
public override void Reset()