Class PropertySelector
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
public class PropertySelector : IndicatorBase, IIndicator, IUpdatable
- Inheritance
-
PropertySelector
- Implements
- Inherited Members
- Extension Methods
Remarks
To select property index 1 (2nd property) then call
new PropertySelector(1) or new PropertySelector(1, 2)
Constructors
PropertySelector(int, int, string)
Initializes a new instance of the Indicator class using the specified name.
public PropertySelector(int startProperty, int stopProperty, string name)
Parameters
startPropertyintStart of interval. The interval includes this value. The default start value is 0.
stopPropertyintEnd 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
PropertySelector(int, string)
Initializes a new instance of the Indicator class using the specified name.
public PropertySelector(int property, string name)
Parameters
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