IIndicatorContainer
StockSharp.Algo.Indicators
The interface of the container, storing indicator data.
Properties
Count
public int Count { get; }
value = iIndicatorContainer.Count
The current number of saved values.
Methods
AddValue
public void AddValue(IIndicatorValue input, IIndicatorValue result)
iIndicatorContainer.AddValue(input, result)
Add new values.
- input
- The input value of the indicator.
- result
- The resulting value of the indicator.
ClearValues
public void ClearValues()
iIndicatorContainer.ClearValues()
To delete all values of the indicator.
GetValue
public ValueTuple<IIndicatorValue, IIndicatorValue> GetValue(int index)
result = iIndicatorContainer.GetValue(index)
To get the indicator value by the index.
- index
- The sequential number of value from the end.
Returns: Input and resulting values of the indicator.
GetValues
public IEnumerable<ValueTuple<IIndicatorValue, IIndicatorValue>> GetValues()
result = iIndicatorContainer.GetValues()
To get all values of the identifier.
Returns: All values of the identifier. The empty set, if there are no values.