OptionsBlackScholesDiagramElement
StockSharp.Diagram.Elements
黑-朔方模型元素.
继承自: DiagramElement
构造函数
OptionsBlackScholesDiagramElement
public OptionsBlackScholesDiagramElement()
optionsBlackScholesDiagramElement = OptionsBlackScholesDiagramElement()
初始化了 & ##OptionsBlackScholesDiagramElement+#的新实例.
属性
IconName
public override string IconName { get; }
value = optionsBlackScholesDiagramElement.IconName
图标资源名 。
UseBlackModel
public bool UseBlackModel { get; set; }
value = optionsBlackScholesDiagramElement.UseBlackModel
optionsBlackScholesDiagramElement.UseBlackModel = value
要使用黑色模型, 而不是 IBlackScholes 模型。 默认关闭 。
方法
OnPrepareAsync
protected override ValueTask OnPrepareAsync(CancellationToken cancellationToken)
result = optionsBlackScholesDiagramElement.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
OnReseted
protected override void OnReseted()
optionsBlackScholesDiagramElement.OnReseted()
是从重置方法调用的。