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

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

Методы

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

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