MathDiagramElement
StockSharp.Diagram.Elements
Formula with two arguments element.
Inherits: DiagramElement
Constructors
MathDiagramElement
public MathDiagramElement()
mathDiagramElement = MathDiagramElement()
Initializes a new instance of the MathDiagramElement.
Properties
Expression
public string Expression { get; set; }
value = mathDiagramElement.Expression
mathDiagramElement.Expression = value
Expression.
IconName
public override string IconName { get; }
value = mathDiagramElement.IconName
Icon resource name.
TypeId
public override Guid TypeId { get; }
value = mathDiagramElement.TypeId
The unique identifier of the diagram element type.
Validation
public string Validation { get; set; }
value = mathDiagramElement.Validation
mathDiagramElement.Validation = value
Validation.
Methods
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.
Returns: ValueTask
OnProcess
protected override void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
mathDiagramElement.OnProcess(time, values, source)
The method is called at the processing of the new incoming values.
- time
- Time.
- values
- Values.
- source
- Source value.
OnReseted
protected override void OnReseted()
mathDiagramElement.OnReseted()
The method is called at re-initialisation of the diagram element state.