Is position ticket the same as the deal ticket that opened the position?

 

Hello,


Could someone please confirm or deny the following.

If I "OrderSend" succesfully a TRADE_ACTION_DEAL, and within the MqlTradeResult struct I retieve a deal_ticket = MqlTradeResult.deal, is this deal_ticket the same as the ticket of the position that was created as a result of the trade deal?

And can I retrieve the position via PositionSelectByTicket( deal_ticket )?

If yes, where is this documented?


Thank you for your help.

Best regards,

Chris

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
  • www.mql5.com
Trading is done by sending orders to open positions using the OrderSend() function, as well as to place, modify or delete pending orders. Each trade order refers to the type of the requested operation. Trading operations are described in the ENUM_TRADE_REQUEST_ACTIONS enumeration...