How does Ticket_Nuber work?

 

Hi all!

If im Using HistoryDealGetDouble like https://www.mql5.com/en/docs/trading/historydealgetdouble

and i wanna get the buy time of my last deal. What Ticket_Nuber does my last deal get? Is it Ticket_0?

Documentation on MQL5: Trade Functions / HistoryDealGetDouble
Documentation on MQL5: Trade Functions / HistoryDealGetDouble
  • www.mql5.com
2. Returns true or false, depending on the success of the function. If successful, the value of the property is placed into a target variable passed by reference by the last parameter...