Mql5, get ticket

 
Hey dear Dev

If I use the trade class to open an order
How can I get the ticket of the trade I just open 
 
Yerim Rayann Gon Diarra:
Hey dear Dev

If I use the trade class to open an order
How can I get the ticket of the trade I just open 

You can check this: https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctraderesultorder

Documentation on MQL5: Standard Library / Trade Classes / CTrade / ResultOrder
Documentation on MQL5: Standard Library / Trade Classes / CTrade / ResultOrder
  • www.mql5.com
ResultOrder - CTrade - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5