Table of Contents

Class MathDiagramElement

Namespace
StockSharp.Diagram.Elements
Assembly
StockSharp.Diagram.Core.dll

Formula with two arguments element.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Formula", Description = "MathFormulaDesc", GroupName = "Common")]
public class MathDiagramElement : DiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
Inheritance
MathDiagramElement
Implements
INotifyPropertiesChanged
IPersistable
Inherited Members
Extension Methods

Constructors

MathDiagramElement()

Initializes a new instance of the MathDiagramElement.

public MathDiagramElement()

Properties

ClearSockets

Clear socket values.

public bool ClearSockets { get; set; }

Property Value

bool

Expression

Expression.

public string Expression { get; set; }

Property Value

string

IconName

Icon resource name.

public override string IconName { get; }

Property Value

string

TypeId

The unique identifier of the diagram element type.

public override Guid TypeId { get; }

Property Value

Guid

Validation

Validation.

public string Validation { get; set; }

Property Value

string

Methods

ClearSocketValues()

Clear socket values.

public override void ClearSocketValues()

OnPrepare()

To prepare for starting the diagram element algorithm.

protected override void OnPrepare()

OnProcess(DateTimeOffset, IDictionary<DiagramSocket, DiagramSocketValue>, DiagramSocketValue)

The method is called at the processing of the new incoming values.

protected override void OnProcess(DateTimeOffset time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)

Parameters

time DateTimeOffset

Time.

values IDictionary<DiagramSocket, DiagramSocketValue>

Values.

source DiagramSocketValue

Source value.