Class CountSelector
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
A selector that calls DoubleArray.SliceIndex(int) on given SelectedIndex.
public class CountSelector : IndicatorBase, IIndicator, IUpdatable
- Inheritance
-
CountSelector
- Implements
- Inherited Members
- Extension Methods
Constructors
CountSelector(int, string)
Initializes a new instance of the Indicator class using the specified name.
public CountSelector(int index, string name)
Parameters
indexintThe index to get from OutputCount.
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
SelectedIndex
The index to get from OutputCount.
public int SelectedIndex { 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