Class OrderUpdate
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
A change to the account's orders/positions (MT5 OrderUpdate), raised by OnOrderUpdate.
public sealed class OrderUpdate
- Inheritance
-
OrderUpdate
- Inherited Members
Properties
- CloseByTicket
For a close-by: the opposite position.
- Deal
The deal the update is about (e.g. the closing deal), when there is one.
- OppositeDeal
For a close-by: the closing deal of the opposite position.
- Order
The position, pending order or closed trade in its new state.
- OrderInternal
The order row the update is about, when there is one.
- TradeType
ViiSync extra: the MT5 trade action behind the update (the
TransactionInfoaction of the MT5 terminal): SetOrder / ModifyOrder / CancelOrder / ModifyDeal / ClosePosition / MarketExecution for requests, and the server's own actions — ActivateOrder (a pending order triggered and filled), ActivateStopLimitOrder (a stop-limit's stop level was crossed and it became a limit order), ActivateStopLoss / ActivateTakeProfit (SL/TP closed the position), ActivateStopOutPosition (stop-out) and ExpireOrder (a pending order's time in force ran out). Null for balance operations.
- Type
What happened.
Methods
- AreEqual(OrderUpdate, OrderUpdate)
True when both updates describe the same change (type, tickets, deal).
- ToString()
"Type Order".