OptionsBasketBlackScholesDiagramElement
StockSharp.Diagram.Elements
由黑-肖勒公式来计算希腊人值的组合模型.
继承自: DiagramElement
构造函数
OptionsBasketBlackScholesDiagramElement
public OptionsBasketBlackScholesDiagramElement()
optionsBasketBlackScholesDiagramElement = OptionsBasketBlackScholesDiagramElement()
初始化了 & ##OptionsBasketBlackScholesDiagramElement+#的新实例.
属性
IconName
public override string IconName { get; }
value = optionsBasketBlackScholesDiagramElement.IconName
图标资源名 。
TypeId
public override Guid TypeId { get; }
value = optionsBasketBlackScholesDiagramElement.TypeId
型号编号.
UseBlackModel
public bool UseBlackModel { get; set; }
value = optionsBasketBlackScholesDiagramElement.UseBlackModel
optionsBasketBlackScholesDiagramElement.UseBlackModel = value
要使用黑色模型, 而不是 IBlackScholes 模型。 默认关闭 。
方法
OnPrepareAsync
protected override ValueTask OnPrepareAsync(CancellationToken cancellationToken)
result = optionsBasketBlackScholesDiagramElement.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()
optionsBasketBlackScholesDiagramElement.OnReseted()
是从重置方法调用的。