Table of Contents

Class OrderRegisterDiagramElement

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

Order registering element.

[Display(ResourceType = typeof(LocalizedStrings), Name = "OrderRegistering", Description = "OrderRegisteringDesc", GroupName = "Orders")]
public class OrderRegisterDiagramElement : OrderBaseDiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
Inheritance
OrderRegisterDiagramElement
Implements
INotifyPropertiesChanged
IPersistable
Inherited Members
Extension Methods

Constructors

OrderRegisterDiagramElement()

Initializes a new instance of the OrderRegisterDiagramElement.

public OrderRegisterDiagramElement()

Properties

BrokerCode

Broker firm code.

public string BrokerCode { get; set; }

Property Value

string

ClientCode

Client code assigned by the broker.

public string ClientCode { get; set; }

Property Value

string

ConditionalSettings

public OrderConditionSettings ConditionalSettings { get; set; }

Property Value

OrderConditionSettings

Direction

Direction.

public Sides Direction { get; set; }

Property Value

Sides

ExpiryDate

Order expiry time. The default is null, which mean (GTC).

public DateTimeOffset? ExpiryDate { get; set; }

Property Value

DateTimeOffset?

IconName

Icon resource name.

public override string IconName { get; }

Property Value

string

IsManual

Is order manual.

public bool? IsManual { get; set; }

Property Value

bool?

IsMarket

Market order type.

public bool IsMarket { get; set; }

Property Value

bool

IsMarketMaker

Is the order of market-maker.

public bool? IsMarketMaker { get; set; }

Property Value

bool?

MarginMode

Margin mode.

public MarginModes? MarginMode { get; set; }

Property Value

MarginModes?

ShrinkPrice

Shrink order price.

public bool ShrinkPrice { get; set; }

Property Value

bool

Slippage

Slippage in trade price.

public decimal? Slippage { get; set; }

Property Value

decimal?

TimeInForce

Limit order time in force.

public TimeInForce? TimeInForce { get; set; }

Property Value

TimeInForce?

TypeId

The unique identifier of the diagram element type.

public override Guid TypeId { get; }

Property Value

Guid

ZeroAsMarket

Zero price makes market order.

public bool ZeroAsMarket { get; set; }

Property Value

bool

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings 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 DateTimeOffset

Time.

values IDictionary<DiagramSocket, DiagramSocketValue>

Values.

source DiagramSocketValue

Source value.

OnReseted()

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

protected override void OnReseted()