Class PositionModifyElement
- Namespace
- StockSharp.Diagram.Elements
- Assembly
- StockSharp.Diagram.Core.dll
Order registering element.
[Display(ResourceType = typeof(LocalizedStrings), Name = "PositionModify", Description = "PositionModifyDesc", GroupName = "Positions")]
public class PositionModifyElement : OrderBaseDiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
- Inheritance
-
PositionModifyElement
- Implements
-
INotifyPropertiesChangedIPersistable
- Inherited Members
- Extension Methods
Constructors
PositionModifyElement()
Initializes a new instance of the PositionModifyElement.
public PositionModifyElement()
Properties
Algorithm
public PositionModifyAlgorithms Algorithm { get; set; }
Property Value
Direction
Direction.
public Sides? Direction { get; set; }
Property Value
IconName
Icon resource name.
public override string IconName { get; }
Property Value
PosCondition
public PositionConditions PosCondition { get; set; }
Property Value
TimeInterval
Time interval that TWAP uses for split time range.
public TimeSpan TimeInterval { get; set; }
Property Value
TypeId
The unique identifier of the diagram element type.
public override Guid TypeId { get; }
Property Value
VolumePart
Volume part that VWAP uses for split target volume.
public Unit VolumePart { get; set; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
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
DateTimeOffsetTime.
values
IDictionary<DiagramSocket, DiagramSocketValue>Values.
source
DiagramSocketValueSource value.
OnReseted()
The method is called at re-initialisation of the diagram element state.
protected override void OnReseted()