Class SliceSelector
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
A selector that calls Slice(int, int) on given Start and Stop.
public class SliceSelector : IndicatorBase, IIndicator, IUpdatable
- Inheritance
-
SliceSelector
- Implements
- Inherited Members
- Extension Methods
Constructors
SliceSelector(int, int, string)
Initializes a new instance of the Indicator class using the specified name.
public SliceSelector(int start, int stop, string name)
Parameters
startintStart of interval. The interval includes this value. The default start value is 0.
stopintEnd of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.
namestringThe name of this indicator
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
Start
Start of interval. The interval includes this value. The default start value is 0.
public int Start { get; }
Property Value
Stop
End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.
public int Stop { get; }
Property Value
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe input given to the indicator
Returns
- DoubleArray
A new value for this indicator