ShiftedIndicatorValue
StockSharp.Algo.Indicators
The shifted value of the indicator.
Inherits: SingleIndicatorValue<decimal>
Constructors
ShiftedIndicatorValue
public ShiftedIndicatorValue(IIndicator indicator, DateTime time)
shiftedIndicatorValue = ShiftedIndicatorValue(indicator, time)
Initializes a new instance of the ShiftedIndicatorValue.
- indicator
- Indicator.
- time
- Time
ShiftedIndicatorValue
public ShiftedIndicatorValue(IIndicator indicator, decimal value, int shift, DateTime time)
shiftedIndicatorValue = ShiftedIndicatorValue(indicator, value, shift, time)
Initializes a new instance of the ShiftedIndicatorValue.
- indicator
- Indicator.
- value
- Indicator value.
- shift
- The shift of the indicator value.
- time
- Time
Properties
Shift
public int Shift { get; private set; }
value = shiftedIndicatorValue.Shift
shiftedIndicatorValue.Shift = value
The shift of the indicator value.
Methods
FromValues
public override void FromValues(object[] values)
shiftedIndicatorValue.FromValues(values)
Convert to indicator value.
- values
- ToValues
ToValues
public override IEnumerable<object> ToValues()
result = shiftedIndicatorValue.ToValues()
Convert to primitive values.
Returns: Primitive values.