Show / Hide Table of Contents

Class PositionDiagramElement

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

Inheritance
Object
BaseLogSource
BaseLogReceiver
DiagramElement
StrategyInputDiagramElement
PositionDiagramElement
Implements
Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
IDisposable
INotifyPropertyChanging
INotifyPropertyChanged
ICustomTypeDescriptor
Ecng.ComponentModel.INotifyPropertiesChanged
Inherited Members
StrategyInputDiagramElement.ShowStrategySocket
DiagramElement.ProcessDoubleClick(Object)
DiagramElement.SetElementName(String)
DiagramElement.AddParam<T>(String, T)
DiagramElement.AddParam(IDiagramElementParam)
DiagramElement.RemoveParam(IDiagramElementParam)
DiagramElement.CreateSocketInstance(DiagramSocketDirection, String)
DiagramElement.GetOrAddInput(String, String, DiagramSocketType, Boolean, Action<DiagramSocketValue>, Int32, Int32, Boolean, Nullable<Boolean>)
DiagramElement.GetOrAddInput(StaticSocketIds, String, DiagramSocketType, Boolean, Action<DiagramSocketValue>, Int32, Int32, Boolean, Nullable<Boolean>)
DiagramElement.GetOrAddOutput(StaticSocketIds, String, DiagramSocketType, Boolean, Int32, Int32, Nullable<Boolean>)
DiagramElement.GetOrAddOutput(String, String, DiagramSocketType, Boolean, Int32, Int32, Nullable<Boolean>)
DiagramElement.AddInput(StaticSocketIds, String, DiagramSocketType, Action<DiagramSocketValue>, Int32, Int32, Boolean, Nullable<Boolean>)
DiagramElement.AddInput(String, String, DiagramSocketType, Action<DiagramSocketValue>, Int32, Int32, Boolean, Nullable<Boolean>)
DiagramElement.AddOutput(StaticSocketIds, String, DiagramSocketType, Int32, Int32, Nullable<Boolean>)
DiagramElement.AddOutput(String, String, DiagramSocketType, Int32, Int32, Nullable<Boolean>)
DiagramElement.RemoveSocket(String)
DiagramElement.RemoveSocket(DiagramSocket)
DiagramElement.RemoveSockets(Boolean)
DiagramElement.RemoveSockets(Func<DiagramSocket, Boolean>, Boolean)
DiagramElement.OnSocketConnected(DiagramSocket, DiagramSocket)
DiagramElement.OnSocketDisconnected(DiagramSocket, DiagramSocket)
DiagramElement.RaiseSocketChanged(DiagramSocket)
DiagramElement.RaiseProcessOutput(DiagramSocket, DateTimeOffset, Object, DiagramSocketValue, Subscription)
DiagramElement.RaiseProcessOutput(DiagramSocket, Object)
DiagramElement.RaiseProcessOutput(DiagramSocket, Object, Subscription)
DiagramElement.RaiseProcessOutput(DiagramSocket, Object, DiagramSocketValue, Subscription)
DiagramElement.RaiseProcessOutput(DateTimeOffset, Object, DiagramSocketValue, Subscription)
DiagramElement.RaiseProcessOutput(Object, DiagramSocketValue, Subscription)
DiagramElement.Flush()
DiagramElement.Init(ILogSource)
DiagramElement.UnInit()
DiagramElement.OnInit()
DiagramElement.OnUnInit()
DiagramElement.Process(DiagramSocketValue)
DiagramElement.GetNumConnections(DiagramSocket)
DiagramElement.GetConnectedSourceSockets(DiagramSocket)
DiagramElement.OnProcess(DateTimeOffset, IDictionary<DiagramSocket, DiagramSocketValue>, DiagramSocketValue)
DiagramElement.Start()
DiagramElement.Stop()
DiagramElement.Reset()
DiagramElement.OnReseted()
DiagramElement.ClearSocketValues()
DiagramElement.RaisePropertyChanging(String)
DiagramElement.RaisePropertyChanging(Object, PropertyChangingEventArgs)
DiagramElement.RaisePropertyChanged(String)
DiagramElement.RaisePropertyChanged(Object, PropertyChangedEventArgs)
DiagramElement.RaiseParameterValueChanged(String)
DiagramElement.Clone(Boolean)
DiagramElement.Save(SettingsStorage)
DiagramElement.RaisePropertiesChanged()
DiagramElement.SaveUndoState(Object)
DiagramElement.InputSockets
DiagramElement.OutputSockets
DiagramElement.ParentComposition
DiagramElement.IsUndoRedoing
DiagramElement.HasUndoManager
DiagramElement.Parameters
DiagramElement.Category
DiagramElement.CanAutoName
DiagramElement.Name
DiagramElement.Description
DiagramElement.LogLevel
DiagramElement.ShowParameters
DiagramElement.ShowSockets
DiagramElement.ProcessNullValues
DiagramElement.Icon
DiagramElement.Strategy
DiagramElement.Connector
DiagramElement.DebuggerSyncObject
DiagramElement.NeedFlush
DiagramElement.ProcessingLevel
DiagramElement.ProcessOutput
DiagramElement.SocketAdded
DiagramElement.SocketRemoved
DiagramElement.SocketChanged
DiagramElement.StartedUndoableOperation
DiagramElement.CommittedUndoableOperation
DiagramElement.PropertyChanging
DiagramElement.PropertyChanged
DiagramElement.ParameterValueChanged
DiagramElement.PropertiesChanged
BaseLogReceiver.ILogReceiver.AddLog(LogMessage)
BaseLogSource.RaiseLog(LogMessage)
BaseLogSource.ToString()
BaseLogSource.Id
BaseLogSource.Parent
BaseLogSource.CurrentTime
BaseLogSource.IsRoot
BaseLogSource.ParentRemoved
BaseLogSource.Log
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
DiagramElement.IconName

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
DiagramElement.TypeId

Methods

Load(SettingsStorage)

Загрузить настройки.

Declaration
public override void Load(SettingsStorage storage)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage

Хранилище настроек.

Overrides
StrategyInputDiagramElement.Load(SettingsStorage)

OnStart()

Метод вызывается при запуске алгоритма элемента схемы.

Declaration
protected override void OnStart()
Overrides
StrategyInputDiagramElement.OnStart()

OnStop()

Метод вызывается при остановке алгоритма элемента схемы.

Declaration
protected override void OnStop()
Overrides
StrategyInputDiagramElement.OnStop()

OnSubscribe(Strategy, DiagramSocketValue)

Метод вызывается при подписке на стратегию.

Declaration
protected override void OnSubscribe(Strategy strategy, DiagramSocketValue source)
Parameters
Type Name Description
Strategy strategy

Strategy.

DiagramSocketValue source

Исходное значение.

Overrides
StrategyInputDiagramElement.OnSubscribe(Strategy, DiagramSocketValue)

OnUnSubscribe(Strategy, DiagramSocketValue)

Метод, вызываемый при отписке от маркет данных.

Declaration
protected override void OnUnSubscribe(Strategy strategy, DiagramSocketValue source)
Parameters
Type Name Description
Strategy strategy

Strategy.

DiagramSocketValue source

Исходное значение.

Overrides
StrategyInputDiagramElement.OnUnSubscribe(Strategy, DiagramSocketValue)

Implements

Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
System.IDisposable
System.ComponentModel.INotifyPropertyChanging
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.ICustomTypeDescriptor
Ecng.ComponentModel.INotifyPropertiesChanged

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
Extensions.TryGet<TMessage, TChange>(TMessage, TChange)
Extensions.TryGetDecimal<TMessage, TChange>(TMessage, TChange)
Extensions.Add<TMessage, TChange>(TMessage, TChange, Object)
Extensions.Add<TMessage, TChange>(TMessage, TChange, Decimal)
Extensions.Add<TMessage, TChange>(TMessage, TChange, Int32)
Extensions.Add<TMessage, TChange>(TMessage, TChange, Int64)
Extensions.Add<TMessage, TChange>(TMessage, TChange, SecurityStates)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<SecurityStates>)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, String)
Extensions.Add<TMessage, TChange>(TMessage, TChange, Sides)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<Sides>)
Extensions.Add<TMessage, TChange>(TMessage, TChange, CurrencyTypes)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<CurrencyTypes>)
Extensions.Add<TMessage, TChange>(TMessage, TChange, PortfolioStates)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<PortfolioStates>)
Extensions.Add<TMessage, TChange>(TMessage, TChange, DateTimeOffset)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<DateTimeOffset>)
Extensions.Add<TMessage, TChange>(TMessage, TChange, Boolean)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<Boolean>)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Decimal, Boolean)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<Decimal>, Boolean)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Int32, Boolean)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<Int32>, Boolean)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Int64, Boolean)
Extensions.TryAdd<TMessage, TChange>(TMessage, TChange, Nullable<Int64>, Boolean)
StudioHelper.GetId(DiagramElement, CompositionType)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾