IIndicatorValue

StockSharp.Algo.Indicators

The indicator value, based on which it will renew its value, as well as value, containing result of indicator calculation.

Implements: IComparable<IIndicatorValue>, IComparable

Properties

Indicator
public IIndicator Indicator { get; }
value = iIndicatorValue.Indicator

Indicator.

IsEmpty
public bool IsEmpty { get; }
value = iIndicatorValue.IsEmpty

No indicator value.

IsFinal
public bool IsFinal { get; set; }
value = iIndicatorValue.IsFinal
iIndicatorValue.IsFinal = value

Is the value final (indicator finalizes its value and will not be changed anymore in the given point of time).

IsFormed
public bool IsFormed { get; set; }
value = iIndicatorValue.IsFormed
iIndicatorValue.IsFormed = value

Whether the indicator is set.

Time
public DateTime Time { get; }
value = iIndicatorValue.Time

Value time.

Methods

FromValues
public void FromValues(object[] values)
iIndicatorValue.FromValues(values)

Convert to indicator value.

values
ToValues
GetValue``1
public T GetValue<T>(Level1Fields? field)
result = iIndicatorValue.GetValue(field)

To get the value by the data type.

field
Field specified value source.

Returns: Value.

ToValues
public IEnumerable<object> ToValues()
result = iIndicatorValue.ToValues()

Convert to primitive values.

Returns: Primitive values.