MathDiagramElement
StockSharp.Diagram.Elements
配有两个参数元素的公式。
继承自: DiagramElement
构造函数
MathDiagramElement
public MathDiagramElement()
mathDiagramElement = MathDiagramElement()
初始化了 & ##MathDiagramElement+#的新实例.
属性
Expression
public string Expression { get; set; }
value = mathDiagramElement.Expression
mathDiagramElement.Expression = value
表达相.
Validation
public string Validation { get; set; }
value = mathDiagramElement.Validation
mathDiagramElement.Validation = value
验出.
方法
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.
返回值: ValueTask
OnProcess
protected override void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
mathDiagramElement.OnProcess(time, values, source)
这种方法在新入值的处理中被调用.
- time
- 时间到了
- values
- 价值.
- source
- 出处相值.