SuperTrendIndicatorValue
StockSharp.Algo.Indicators
The value for the SuperTrend indicator, including trend direction.
Inherits: DecimalIndicatorValue
Constructors
SuperTrendIndicatorValue
public SuperTrendIndicatorValue(IIndicator indicator, DateTime time)
superTrendIndicatorValue = SuperTrendIndicatorValue(indicator, time)
Initializes a new instance of the SuperTrendIndicatorValue class.
- indicator
- Indicator.
- time
- Value time.
SuperTrendIndicatorValue
public SuperTrendIndicatorValue(IIndicator indicator, decimal value, bool isUpTrend, DateTime time)
superTrendIndicatorValue = SuperTrendIndicatorValue(indicator, value, isUpTrend, time)
Initializes a new instance of the SuperTrendIndicatorValue class.
- indicator
- Indicator.
- value
- SuperTrend line value.
- isUpTrend
- Trend direction.
- time
- Value time.
Properties
IsUpTrend
public bool IsUpTrend { get; private set; }
value = superTrendIndicatorValue.IsUpTrend
superTrendIndicatorValue.IsUpTrend = value
Trend direction.
Methods
FromValues
public override void FromValues(object[] values)
superTrendIndicatorValue.FromValues(values)
Convert to indicator value.
- values
- ToValues
ToValues
public override IEnumerable<object> ToValues()
result = superTrendIndicatorValue.ToValues()
Convert to primitive values.
Returns: Primitive values.