Table of Contents

Class PositionDiagramElement

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

Position element (for security and money) for the specified portfolio.

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

Constructors

PositionDiagramElement()

Initializes a new instance of the PositionDiagramElement.

public PositionDiagramElement()

Properties

IconName

Icon resource name.

public override string IconName { get; }

Property Value

string

IsMoney

Money position.

public bool IsMoney { get; set; }

Property Value

bool

ShowPosition

Show position socket.

public bool ShowPosition { get; set; }

Property Value

bool

TypeId

The unique identifier of the diagram element type.

public override Guid TypeId { get; }

Property Value

Guid

Methods

Flush(DateTimeOffset)

Flush non trigger (root) elements.

public override void Flush(DateTimeOffset time)

Parameters

time DateTimeOffset

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnReseted()

The method is called at re-initialisation of the diagram element state.

protected override void OnReseted()

OnStart(DateTimeOffset)

The method is called at the start of the diagram element algorithm.

protected override void OnStart(DateTimeOffset time)

Parameters

time DateTimeOffset

OnStop()

The method is called at the stop of the diagram element algorithm.

protected override void OnStop()