MarketDepthIndicatorValue
StockSharp.Algo.Indicators
指标值,与IOrderBookMessage数据类型相通。
继承自: SingleIndicatorValue<IOrderBookMessage>
构造函数
MarketDepthIndicatorValue
public MarketDepthIndicatorValue(IIndicator indicator, DateTime time)
marketDepthIndicatorValue = MarketDepthIndicatorValue(indicator, time)
初始化了 & ##MarketDepthIndicatorValue+#的新实例.
- indicator
- 指标。
- time
- 时间
MarketDepthIndicatorValue
public MarketDepthIndicatorValue(IIndicator indicator, IOrderBookMessage depth)
marketDepthIndicatorValue = MarketDepthIndicatorValue(indicator, depth)
初始化了 & ##MarketDepthIndicatorValue+#的新实例.
- indicator
- 指标。
- depth
- 市场深度.
方法
GetValue``1
public override T GetValue<T>(Level1Fields? field)
result = marketDepthIndicatorValue.GetValue(field)
要按数据类型获得值 。
- field
- 指定字段值源 。
返回值: 价值.