Class SuperTrendIndicatorValue
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.Algo.dll
The value for the SuperTrend indicator, including trend direction.
public class SuperTrendIndicatorValue : DecimalIndicatorValue, IIndicatorValue, IComparable<IIndicatorValue>, IComparable
- Inheritance
-
SuperTrendIndicatorValue
- Implements
- Inherited Members
- Extension Methods
Constructors
SuperTrendIndicatorValue(IIndicator, DateTimeOffset)
Initializes a new instance of the SuperTrendIndicatorValue class.
public SuperTrendIndicatorValue(IIndicator indicator, DateTimeOffset time)
Parameters
indicator
IIndicatorIndicator.
time
DateTimeOffsetValue time.
SuperTrendIndicatorValue(IIndicator, decimal, bool, DateTimeOffset)
Initializes a new instance of the SuperTrendIndicatorValue class.
public SuperTrendIndicatorValue(IIndicator indicator, decimal value, bool isUpTrend, DateTimeOffset time)
Parameters
indicator
IIndicatorIndicator.
value
decimalSuperTrend line value.
isUpTrend
boolTrend direction.
time
DateTimeOffsetValue time.
Properties
IsUpTrend
Trend direction.
public bool IsUpTrend { get; }
Property Value
Methods
FromValues(object[])
Convert to indicator value.
public override void FromValues(object[] values)
Parameters
values
object[]
ToValues()
Convert to primitive values.
public override IEnumerable<object> ToValues()
Returns
- IEnumerable<object>
Primitive values.