Table of Contents

Class IndicatorContainer

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

The container, storing indicators data.

public class IndicatorContainer : IIndicatorContainer
Inheritance
IndicatorContainer
Implements
Inherited Members
Extension Methods

Constructors

IndicatorContainer()

public IndicatorContainer()

Properties

Count

The current number of saved values.

public int Count { get; }

Property Value

int

Methods

AddValue(IIndicatorValue, IIndicatorValue)

Add new values.

public virtual void AddValue(IIndicatorValue input, IIndicatorValue result)

Parameters

input IIndicatorValue

The input value of the indicator.

result IIndicatorValue

The resulting value of the indicator.

ClearValues()

To delete all values of the indicator.

public virtual void ClearValues()

GetValue(int)

To get the indicator value by the index.

public virtual (IIndicatorValue, IIndicatorValue) GetValue(int index)

Parameters

index int

The sequential number of value from the end.

Returns

(IIndicatorValue input, IIndicatorValue output)

Input and resulting values of the indicator.

GetValues()

To get all values of the identifier.

public virtual IEnumerable<(IIndicatorValue, IIndicatorValue)> GetValues()

Returns

IEnumerable<(IIndicatorValue input, IIndicatorValue output)>

All values of the identifier. The empty set, if there are no values.