Class Delay
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
An indicator that delays its input for a certain period
public class Delay : WindowIndicator, IIndicator, IUpdatable
- Inheritance
-
Delay
- Implements
- Inherited Members
- Extension Methods
Constructors
Delay(int)
Creates a new Delay indicator that delays its input by the specified period
public Delay(int period)
Parameters
periodintThe period to delay input, must be greater than zero
Delay(string, int)
Creates a new Delay indicator that delays its input by the specified period
public Delay(string name, int period)
Parameters
namestringName of the delay window indicator
periodintThe period to delay input, must be greater than zero
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 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