Class IndicatorResult
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
Represents the result of an indicator's calculations
public class IndicatorResult
- Inheritance
-
IndicatorResult
- Inherited Members
- Extension Methods
Constructors
IndicatorResult(DoubleArray, IndicatorStatus)
Initializes a new instance of the IndicatorResult class
public IndicatorResult(DoubleArray value, IndicatorStatus status = IndicatorStatus.Success)
Parameters
valueDoubleArrayThe value output by the indicator
statusIndicatorStatusThe status returned by the indicator
Properties
Status
The indicator status
public IndicatorStatus Status { get; }
Property Value
Value
The indicator output value
public DoubleArray Value { get; }
Property Value
Operators
implicit operator IndicatorResult(DoubleArray)
Converts the specified double value into a successful indicator result
public static implicit operator IndicatorResult(DoubleArray value)
Parameters
valueDoubleArrayThe double value to be converted into an IndicatorResult
Returns
Remarks
This method is provided for backwards compatibility
implicit operator IndicatorResult(double)
Converts the specified double value into a successful indicator result
public static implicit operator IndicatorResult(double value)
Parameters
valuedoubleThe double value to be converted into an IndicatorResult
Returns
Remarks
This method is provided for backwards compatibility
implicit operator IndicatorResult(double[])
Converts the specified double value into a successful indicator result
public static implicit operator IndicatorResult(double[] value)
Parameters
valuedouble[]The double value to be converted into an IndicatorResult
Returns
Remarks
This method is provided for backwards compatibility