OptionsBlackScholesDiagramElement

StockSharp.Diagram.Elements

Элемент модели Блэка-Шоулза.

Наследует: DiagramElement

Конструкторы

OptionsBlackScholesDiagramElement
public OptionsBlackScholesDiagramElement()
optionsBlackScholesDiagramElement = OptionsBlackScholesDiagramElement()

Инициализирует новый экземпляр OptionsBlackScholesDiagramElement.

Свойства

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

Имя ресурса Иконы.

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

Тип идентификатора.

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

Использовать модель Black вместо IBlackScholes model. По умолчанию выключено.

Методы

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()

Он вызывается из метода Reset.