Table of Contents

Class MarketDepthIndicatorValue

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

The indicator value, operating with data type IOrderBookMessage.

public class MarketDepthIndicatorValue : SingleIndicatorValue<IOrderBookMessage>, IIndicatorValue, IComparable<IIndicatorValue>, IComparable
Inheritance
MarketDepthIndicatorValue
Implements
Inherited Members
Extension Methods

Constructors

MarketDepthIndicatorValue(IIndicator, IOrderBookMessage)

Initializes a new instance of the MarketDepthIndicatorValue.

public MarketDepthIndicatorValue(IIndicator indicator, IOrderBookMessage depth)

Parameters

indicator IIndicator

Indicator.

depth IOrderBookMessage

Market depth.

Methods

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.