Class Level1IndicatorValue
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.BusinessEntities.dll
The indicator value, operating with data type Level1ChangeMessage.
public class Level1IndicatorValue : SingleIndicatorValue<Level1ChangeMessage>, IIndicatorValue, IComparable<IIndicatorValue>, IComparable
- Inheritance
-
Level1IndicatorValue
- Implements
- Inherited Members
- Extension Methods
Constructors
Level1IndicatorValue(IIndicator, Level1ChangeMessage)
Initializes a new instance of the Level1IndicatorValue.
public Level1IndicatorValue(IIndicator indicator, Level1ChangeMessage l1Msg)
Parameters
indicator
IIndicatorIndicator.
l1Msg
Level1ChangeMessage
Methods
GetValue<T>(Level1Fields?)
To get the value by the data type.
public override T GetValue<T>(Level1Fields? field)
Parameters
field
Level1Fields?Field specified value source.
Returns
- T
Value.
Type Parameters
T
The data type, operated by indicator.
IsSupport(Type)
Does value support data type, required for the indicator.
public override bool IsSupport(Type valueType)
Parameters
valueType
TypeThe data type, operated by indicator.
Returns
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.