I would like to find out more about the way the ticket numbers are generated for trades.
Are these numbers unique per client terminal or per EA instance?
If the EA is started and stopped multiple times, and in each run it creates multiple trades, will those trades get unique ticket numbers?
Also, if I select a trade that was closed say a week ago, would the OrderTicket() function return the ticket number of the trade as assigned at the creation time?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I would like to find out more about the way the ticket numbers are generated for trades.
Are these numbers unique per client terminal or per EA instance?
If the EA is started and stopped multiple times, and in each run it creates multiple trades, will those trades get unique ticket numbers?
Also, if I select a trade that was closed say a week ago, would the OrderTicket() function return the ticket number of the trade as assigned at the creation time?
Best regards,
Levente