Table of Contents

Class DecimalIndicatorValue

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.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)

Initializes a new instance of the DecimalIndicatorValue.

public DecimalIndicatorValue(IIndicator indicator)

Parameters

indicator IIndicator

Indicator.

DecimalIndicatorValue(IIndicator, decimal)

Initializes a new instance of the DecimalIndicatorValue.

public DecimalIndicatorValue(IIndicator indicator, decimal value)

Parameters

indicator IIndicator

Indicator.

value decimal

Value.

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.