IndicatorContainer
StockSharp.Algo.Indicators
The container, storing indicators data.
Implements: IIndicatorContainer
Properties
Count
public int Count { get; }
value = indicatorContainer.Count
The current number of saved values.
Methods
AddValue
public virtual void AddValue(IIndicatorValue input, IIndicatorValue result)
indicatorContainer.AddValue(input, result)
Add new values.
- input
- The input value of the indicator.
- result
- The resulting value of the indicator.
ClearValues
public virtual void ClearValues()
indicatorContainer.ClearValues()
To delete all values of the indicator.
GetValue
public virtual ValueTuple<IIndicatorValue, IIndicatorValue> GetValue(int index)
result = indicatorContainer.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 virtual IEnumerable<ValueTuple<IIndicatorValue, IIndicatorValue>> GetValues()
result = indicatorContainer.GetValues()
To get all values of the identifier.
Returns: All values of the identifier. The empty set, if there are no values.