Ticket number is unique per whole trade server (for all clients)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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