Table of Contents

Class ComplexIndicatorValue

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

The complex value of the indicator IComplexIndicator, derived as result of calculation.

public class ComplexIndicatorValue : BaseIndicatorValue, IIndicatorValue, IComparable<IIndicatorValue>, IComparable
Inheritance
ComplexIndicatorValue
Implements
Inherited Members
Extension Methods

Constructors

ComplexIndicatorValue(IComplexIndicator, DateTimeOffset)

Initializes a new instance of the ComplexIndicatorValue.

public ComplexIndicatorValue(IComplexIndicator indicator, DateTimeOffset time)

Parameters

indicator IComplexIndicator

Indicator.

time DateTimeOffset

Time

Properties

InnerValues

Embedded values.

public IDictionary<IIndicator, IIndicatorValue> InnerValues { get; }

Property Value

IDictionary<IIndicator, IIndicatorValue>

IsEmpty

No indicator value.

public override bool IsEmpty { get; set; }

Property Value

bool

IsFinal

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

public override bool IsFinal { get; set; }

Property Value

bool

this[IIndicator]

Gets or sets a value of inner indicator.

public IIndicatorValue this[IIndicator indicator] { get; set; }

Parameters

indicator IIndicator

IIndicator

Property Value

IIndicatorValue

IIndicatorValue

Methods

Add(IIndicator, IIndicatorValue)

Add a value of inner indicator.

public void Add(IIndicator indicator, IIndicatorValue value)

Parameters

indicator IIndicator

IIndicator

value IIndicatorValue

IIndicatorValue

CompareTo(IIndicatorValue)

public override int CompareTo(IIndicatorValue other)

Parameters

other IIndicatorValue

Returns

int

FromValues(object[])

Convert to indicator value.

public override void FromValues(object[] values)

Parameters

values object[]

ToValues()

GetValue<T>(Level1Fields?)

To get the value by the data type.

public override T GetValue<T>(Level1Fields? field)

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.

public override 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).

public override 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.

public override IEnumerable<object> ToValues()

Returns

IEnumerable<object>

Primitive values.

TryGet(IIndicator, out IIndicatorValue)

Try get a value of inner indicator.

public bool TryGet(IIndicator indicator, out IIndicatorValue value)

Parameters

indicator IIndicator

IIndicator

value IIndicatorValue

IIndicatorValue

Returns

bool

Operation result.