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
OnPrepare
protected override void OnPrepare()
mathDiagramElement.OnPrepare()
To prepare for starting the diagram element algorithm.
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.