OptionsBlackScholesDiagramElement
StockSharp.Diagram.Elements
El elemento modelo Black-Scholes.
Hereda de: DiagramElement
Constructores
OptionsBlackScholesDiagramElement
public OptionsBlackScholesDiagramElement()
optionsBlackScholesDiagramElement = OptionsBlackScholesDiagramElement()
Inicia una nueva instancia de la OptionsBlackScholesDiagramElement.
Propiedades
IconName
public override string IconName { get; }
value = optionsBlackScholesDiagramElement.IconName
Nombre de los recursos de iconos.
TypeId
public override Guid TypeId { get; }
value = optionsBlackScholesDiagramElement.TypeId
Escribe id.
UseBlackModel
public bool UseBlackModel { get; set; }
value = optionsBlackScholesDiagramElement.UseBlackModel
optionsBlackScholesDiagramElement.UseBlackModel = value
Para utilizar el modelo Black en lugar de IBlackScholesmodel. El defecto está apagado.
Métodos
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.
Devuelve: ValueTask
OnReseted
protected override void OnReseted()
optionsBlackScholesDiagramElement.OnReseted()
Se llama desde el método Reset.