Class PositionDiagramElement
Position element (for security and money) for the specified portfolio.
Inheritance
PositionDiagramElement
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertiesChanged
Inherited Members
Namespace: StockSharp.Xaml.Diagram.Elements
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
[DescriptionLoc("Str3137", false)]
[DisplayNameLoc("Str862")]
[CategoryLoc("Str1559")]
public class PositionDiagramElement : StrategyInputDiagramElement, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged
Constructors
PositionDiagramElement()
Создать PositionDiagramElement.
Declaration
public PositionDiagramElement()
Properties
IconName
Название ресурса с изображением.
Declaration
public override string IconName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
IsMoney
Денежная позиция.
Declaration
public bool IsMoney { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ShowPosition
Show position socket.
Declaration
public bool ShowPosition { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
TypeId
Уникальный идентификатор типа элемента схемы.
Declaration
public override Guid TypeId { get; }
Property Value
Type | Description |
---|---|
Guid |
Overrides
Methods
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
OnStart()
Метод вызывается при запуске алгоритма элемента схемы.
Declaration
protected override void OnStart()
Overrides
OnStop()
Метод вызывается при остановке алгоритма элемента схемы.
Declaration
protected override void OnStop()
Overrides
OnSubscribe(Strategy, DiagramSocketValue)
Метод вызывается при подписке на стратегию.
Declaration
protected override void OnSubscribe(Strategy strategy, DiagramSocketValue source)
Parameters
Type | Name | Description |
---|---|---|
Strategy | strategy | Strategy. |
DiagramSocketValue | source | Исходное значение. |
Overrides
OnUnSubscribe(Strategy, DiagramSocketValue)
Метод, вызываемый при отписке от маркет данных.
Declaration
protected override void OnUnSubscribe(Strategy strategy, DiagramSocketValue source)
Parameters
Type | Name | Description |
---|---|---|
Strategy | strategy | Strategy. |
DiagramSocketValue | source | Исходное значение. |
Overrides
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertiesChanged