Table of Contents

Interface IIndicatorValue

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

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

public interface IIndicatorValue : IComparable<IIndicatorValue>, IComparable
Inherited Members
Extension Methods

Properties

Indicator

Indicator.

IIndicator Indicator { get; }

Property Value

IIndicator

IsEmpty

No indicator value.

bool IsEmpty { get; }

Property Value

bool

IsFinal

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

bool IsFinal { get; set; }

Property Value

bool

IsFormed

Whether the indicator is set.

bool IsFormed { get; set; }

Property Value

bool

Methods

FromValues(object[])

Convert to indicator value.

void FromValues(object[] values)

Parameters

values object[]

ToValues()

GetValue<T>(Level1Fields?)

To get the value by the data type.

T GetValue<T>(Level1Fields? field = null)

Parameters

field Level1Fields?

Field specified value source.

Returns

T

Value.

Type Parameters

T

The data type, operated by indicator.

IsSupport(Type)

Does value support data type, required for the indicator.

bool IsSupport(Type valueType)

Parameters

valueType Type

The data type, operated by indicator.

Returns

bool

true, if data type is supported, otherwise, false.

SetValue<T>(IIndicator, T)

To replace the indicator input value by new one (for example it is received from another indicator).

IIndicatorValue SetValue<T>(IIndicator indicator, T value)

Parameters

indicator IIndicator

Indicator.

value T

Value.

Returns

IIndicatorValue

New object, containing input value.

Type Parameters

T

The data type, operated by indicator.

ToValues()

Convert to primitive values.

IEnumerable<object> ToValues()

Returns

IEnumerable<object>

Primitive values.