Interface IIndicatorContainer
The interface of the container, storing indicator data.
Namespace: StockSharp.Algo.Indicators
Assembly: StockSharp.Algo.dll
Syntax
public interface IIndicatorContainer
Properties
Count
The current number of saved values.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
AddValue(IIndicatorValue, IIndicatorValue)
Add new values.
Declaration
void AddValue(IIndicatorValue input, IIndicatorValue result)
Parameters
Type | Name | Description |
---|---|---|
IIndicatorValue | input | The input value of the indicator. |
IIndicatorValue | result | The resulting value of the indicator. |
ClearValues()
To delete all values of the indicator.
Declaration
void ClearValues()
GetValue(Int32)
To get the indicator value by the index.
Declaration
Tuple<IIndicatorValue, IIndicatorValue> GetValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The sequential number of value from the end. |
Returns
Type | Description |
---|---|
Tuple<IIndicatorValue, IIndicatorValue> | Input and resulting values of the indicator. |
GetValues()
To get all values of the identifier.
Declaration
IEnumerable<Tuple<IIndicatorValue, IIndicatorValue>> GetValues()
Returns
Type | Description |
---|---|
IEnumerable<Tuple<IIndicatorValue, IIndicatorValue>> | All values of the identifier. The empty set, if there are no values. |