Table of Contents

Class ShiftedIndicatorValue

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

The shifted value of the indicator.

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

Constructors

ShiftedIndicatorValue(IIndicator)

Initializes a new instance of the ShiftedIndicatorValue.

public ShiftedIndicatorValue(IIndicator indicator)

Parameters

indicator IIndicator

Indicator.

ShiftedIndicatorValue(IIndicator, decimal, int)

Initializes a new instance of the ShiftedIndicatorValue.

public ShiftedIndicatorValue(IIndicator indicator, decimal value, int shift)

Parameters

indicator IIndicator

Indicator.

value decimal

Indicator value.

shift int

The shift of the indicator value.

Properties

Shift

The shift of the indicator value.

public int Shift { get; }

Property Value

int

Methods

FromValues(object[])

Convert to indicator value.

public override void FromValues(object[] values)

Parameters

values object[]

ToValues()

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.