Table of Contents

Class PairIndicatorValue<TValue>

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

The value of the indicator, operating with pair .

public class PairIndicatorValue<TValue> : SingleIndicatorValue<Tuple<TValue, TValue>>, IIndicatorValue, IComparable<IIndicatorValue>, IComparable

Type Parameters

TValue

Value type.

Inheritance
SingleIndicatorValue<Tuple<TValue, TValue>>
PairIndicatorValue<TValue>
Implements
Inherited Members
Extension Methods

Constructors

PairIndicatorValue(IIndicator, DateTimeOffset)

Initializes a new instance of the PairIndicatorValue<TValue>.

public PairIndicatorValue(IIndicator indicator, DateTimeOffset time)

Parameters

indicator IIndicator

Indicator.

time DateTimeOffset

Time

PairIndicatorValue(IIndicator, Tuple<TValue, TValue>, DateTimeOffset)

Initializes a new instance of the PairIndicatorValue<TValue>.

public PairIndicatorValue(IIndicator indicator, Tuple<TValue, TValue> value, DateTimeOffset time)

Parameters

indicator IIndicator

Indicator.

value Tuple<TValue, TValue>

Value.

time DateTimeOffset

Time

Methods

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.