Table of Contents

Class DecimalIndicatorValue

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

The indicator value, operating with data type decimal.

public class DecimalIndicatorValue : SingleIndicatorValue<decimal>, IIndicatorValue, IComparable<IIndicatorValue>, IComparable
Inheritance
DecimalIndicatorValue
Implements
Inherited Members
Extension Methods

Constructors

DecimalIndicatorValue(IIndicator, DateTimeOffset)

Initializes a new instance of the DecimalIndicatorValue.

public DecimalIndicatorValue(IIndicator indicator, DateTimeOffset time)

Parameters

indicator IIndicator

Indicator.

time DateTimeOffset

Time

DecimalIndicatorValue(IIndicator, decimal, DateTimeOffset)

Initializes a new instance of the DecimalIndicatorValue.

public DecimalIndicatorValue(IIndicator indicator, decimal value, DateTimeOffset time)

Parameters

indicator IIndicator

Indicator.

value decimal

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.

Operators

explicit operator decimal(DecimalIndicatorValue)

Cast object from DecimalIndicatorValue to decimal.

public static explicit operator decimal(DecimalIndicatorValue value)

Parameters

value DecimalIndicatorValue

Object DecimalIndicatorValue.

Returns

decimal

decimal value.