Class WindowIdentity
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
Represents an indicator that is a ready after ingesting enough samples (# samples > period) and always returns the same value as it is given.
public class WindowIdentity : WindowIndicator, IIndicator, IUpdatable
- Inheritance
-
WindowIdentity
- Implements
- Inherited Members
- Extension Methods
Constructors
WindowIdentity(int)
Initializes a new instance of the WindowIdentity class with the default name and period
public WindowIdentity(int period)
Parameters
periodintThe period of the WindowIdentity
WindowIdentity(string, int)
Initializes a new instance of the WindowIdentity class with the specified name and period
public WindowIdentity(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
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
timelonginputDoubleArrayThe input value to this indicator on this time step
Returns
- DoubleArray
A new value for this indicator