IIndicatorContainer
StockSharp.Algo.Indicators
容器的接口,存储指标数据.
属性
方法
AddValue
public void AddValue(IIndicatorValue input, IIndicatorValue result)
iIndicatorContainer.AddValue(input, result)
添加新值 。
- input
- 指标的输入值。
- result
- 指标的数值。
GetValue
public ValueTuple<IIndicatorValue, IIndicatorValue> GetValue(int index)
result = iIndicatorContainer.GetValue(index)
以指数来获取指标值。
- index
- 结束的相继值数 。
返回值: 指标的投入和由此而来的价值。
GetValues
public IEnumerable<ValueTuple<IIndicatorValue, IIndicatorValue>> GetValues()
result = iIndicatorContainer.GetValues()
要获得标识符的全部值 。
返回值: 标识符的所有值。 如果没有值, 则该空集 。