OptionsBlackScholesDiagramElement

StockSharp.Diagram.Elements

The Black-Scholes model element.

Inherits: DiagramElement

Constructors

OptionsBlackScholesDiagramElement
public OptionsBlackScholesDiagramElement()
optionsBlackScholesDiagramElement = OptionsBlackScholesDiagramElement()

Initializes a new instance of the OptionsBlackScholesDiagramElement.

Properties

IconName
public override string IconName { get; }
value = optionsBlackScholesDiagramElement.IconName

Icon resource name.

TypeId
public override Guid TypeId { get; }
value = optionsBlackScholesDiagramElement.TypeId

The unique identifier of the diagram element type.

UseBlackModel
public bool UseBlackModel { get; set; }
value = optionsBlackScholesDiagramElement.UseBlackModel
optionsBlackScholesDiagramElement.UseBlackModel = value

To use the model Black instead of IBlackScholes model. The default is off.

Methods

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.

Returns: ValueTask

OnReseted
protected override void OnReseted()
optionsBlackScholesDiagramElement.OnReseted()

The method is called at re-initialisation of the diagram element state.