SecurityIndexDiagramElement
StockSharp.Diagram.Elements
Security index based on ExpressionIndexSecurity diagram element.
Inherits: DiagramElement
Constructors
SecurityIndexDiagramElement
public SecurityIndexDiagramElement()
securityIndexDiagramElement = SecurityIndexDiagramElement()
Initializes a new instance of the SecurityIndexDiagramElement.
Properties
CalculateExtended
public bool CalculateExtended { get; set; }
value = securityIndexDiagramElement.CalculateExtended
securityIndexDiagramElement.CalculateExtended = value
Calculate extended information.
IconName
public override string IconName { get; }
value = securityIndexDiagramElement.IconName
Icon resource name.
IgnoreErrors
public bool IgnoreErrors { get; set; }
value = securityIndexDiagramElement.IgnoreErrors
securityIndexDiagramElement.IgnoreErrors = value
Ignore calculation errors (like arithmetic overflows).
Index
public string Index { get; set; }
value = securityIndexDiagramElement.Index
securityIndexDiagramElement.Index = value
Index.
TypeId
public override Guid TypeId { get; }
value = securityIndexDiagramElement.TypeId
The unique identifier of the diagram element type.
Methods
OnPrepareAsync
protected override ValueTask OnPrepareAsync(CancellationToken cancellationToken)
result = securityIndexDiagramElement.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
OnReseted
protected override void OnReseted()
securityIndexDiagramElement.OnReseted()
The method is called at re-initialisation of the diagram element state.
OnStart
protected override void OnStart(DateTime time)
securityIndexDiagramElement.OnStart(time)
The method is called at the start of the diagram element algorithm.