MathDiagramElement
StockSharp.Diagram.Elements
Fórmula com dois elementos de argumentos.
Herda de: DiagramElement
Construtores
MathDiagramElement
public MathDiagramElement()
mathDiagramElement = MathDiagramElement()
Inicializa uma nova instância do MathDiagramElement.
Propriedades
Expression
public string Expression { get; set; }
value = mathDiagramElement.Expression
mathDiagramElement.Expression = value
Expressão.
IconName
public override string IconName { get; }
value = mathDiagramElement.IconName
Nome do recurso de ícones.
Validation
public string Validation { get; set; }
value = mathDiagramElement.Validation
mathDiagramElement.Validation = value
Validação.
Métodos
DisposeManaged
protected override void DisposeManaged()
mathDiagramElement.DisposeManaged()
Disposes the managed resources. Override this method to add custom clean up of managed resources.
OnPrepareAsync
protected override ValueTask OnPrepareAsync(CancellationToken cancellationToken)
result = mathDiagramElement.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
OnProcess
protected override void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
mathDiagramElement.OnProcess(time, values, source)
O método é chamado no processamento dos novos valores recebidos.
- time
- Tempo.
- values
- Valores.
- source
- Valor de fonte.
OnReseted
protected override void OnReseted()
mathDiagramElement.OnReseted()
É chamado do método de Reiniciar.