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
indicatorIIndicatorIndicator.
timeDateTimeOffsetValue 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
indicatorIIndicatorIndicator.
valuedecimalSuperTrend line value.
isUpTrendboolTrend direction.
timeDateTimeOffsetValue 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
valuesobject[]
ToValues()
Convert to primitive values.
public override IEnumerable<object> ToValues()
Returns
- IEnumerable<object>
Primitive values.