SecurityIndexDiagramElement
StockSharp.Diagram.Elements
金融工具指数,基于ExpressionIndexSecurity图示元素。
继承自: DiagramElement
构造函数
SecurityIndexDiagramElement
public SecurityIndexDiagramElement()
securityIndexDiagramElement = SecurityIndexDiagramElement()
初始化了 & ##SecurityIndexDiagramElement+#的新实例.
属性
CalculateExtended
public bool CalculateExtended { get; set; }
value = securityIndexDiagramElement.CalculateExtended
securityIndexDiagramElement.CalculateExtended = value
计算扩展信息 。
IconName
public override string IconName { get; }
value = securityIndexDiagramElement.IconName
图标资源名 。
IgnoreErrors
public bool IgnoreErrors { get; set; }
value = securityIndexDiagramElement.IgnoreErrors
securityIndexDiagramElement.IgnoreErrors = value
忽略计算错误( 如算术外溢) 。
Index
public string Index { get; set; }
value = securityIndexDiagramElement.Index
securityIndexDiagramElement.Index = value
指数。
方法
OnPrepareAsync
protected override ValueTask OnPrepareAsync(CancellationToken cancellationToken)
result = securityIndexDiagramElement.OnPrepareAsync(cancellationToken)
Resolves what the element needs from asynchronous sources (securities, underlying assets, derivatives) before the start, so that value processing stays synchronous. Called after OnPrepare.
- cancellationToken
- Cancellation token.
返回值: ValueTask
OnStart
protected override void OnStart(DateTime time)
securityIndexDiagramElement.OnStart(time)
该方法在图元素算法的起步时被叫作.