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
Methods
AddValue(IIndicatorValue, IIndicatorValue)
Add new values.
public virtual void AddValue(IIndicatorValue input, IIndicatorValue result)
Parameters
input
IIndicatorValueThe input value of the indicator.
result
IIndicatorValueThe 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
intThe sequential number of value from the end.
Returns
- (IIndicatorValue, IIndicatorValue)
Input and resulting values of the indicator.
GetValues()
To get all values of the identifier.
public virtual IEnumerable<(IIndicatorValue, IIndicatorValue)> GetValues()
Returns
- IEnumerable<(IIndicatorValue, IIndicatorValue)>
All values of the identifier. The empty set, if there are no values.