OptionsBasketBlackScholesDiagramElement
StockSharp.Diagram.Elements
Modelo de carteira para calcular os valores dos gregos pela fórmula Black-Scholes.
Herda de: DiagramElement
Construtores
OptionsBasketBlackScholesDiagramElement
public OptionsBasketBlackScholesDiagramElement()
optionsBasketBlackScholesDiagramElement = OptionsBasketBlackScholesDiagramElement()
Inicializa uma nova instância do OptionsBasketBlackScholesDiagramElement.
Propriedades
IconName
public override string IconName { get; }
value = optionsBasketBlackScholesDiagramElement.IconName
Nome do recurso de ícones.
TypeId
public override Guid TypeId { get; }
value = optionsBasketBlackScholesDiagramElement.TypeId
Tipo id.
UseBlackModel
public bool UseBlackModel { get; set; }
value = optionsBasketBlackScholesDiagramElement.UseBlackModel
optionsBasketBlackScholesDiagramElement.UseBlackModel = value
Para usar o modelo Preto em vez de IBlackScholes model. O padrão está desligado.
Métodos
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.
Retorna: ValueTask
OnReseted
protected override void OnReseted()
optionsBasketBlackScholesDiagramElement.OnReseted()
É chamado do método de Reiniciar.