Class DecimalIndicatorValue
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.BusinessEntities.dll
The indicator value, operating with data type decimal.
public class DecimalIndicatorValue : SingleIndicatorValue<decimal>, IIndicatorValue, IComparable<IIndicatorValue>, IComparable
- Inheritance
-
DecimalIndicatorValue
- Implements
- Inherited Members
- Extension Methods
Constructors
DecimalIndicatorValue(IIndicator, DateTimeOffset)
Initializes a new instance of the DecimalIndicatorValue.
public DecimalIndicatorValue(IIndicator indicator, DateTimeOffset time)
Parameters
indicator
IIndicatorIndicator.
time
DateTimeOffset
DecimalIndicatorValue(IIndicator, decimal, DateTimeOffset)
Initializes a new instance of the DecimalIndicatorValue.
public DecimalIndicatorValue(IIndicator indicator, decimal value, DateTimeOffset time)
Parameters
indicator
IIndicatorIndicator.
value
decimalValue.
time
DateTimeOffset
Methods
SetValue<T>(IIndicator, T)
To replace the indicator input value by new one (for example it is received from another indicator).
public override IIndicatorValue SetValue<T>(IIndicator indicator, T value)
Parameters
indicator
IIndicatorIndicator.
value
TValue.
Returns
- IIndicatorValue
New object, containing input value.
Type Parameters
T
The data type, operated by indicator.
Operators
explicit operator decimal(DecimalIndicatorValue)
Cast object from DecimalIndicatorValue to decimal.
public static explicit operator decimal(DecimalIndicatorValue value)
Parameters
value
DecimalIndicatorValueObject DecimalIndicatorValue.