How can I find the last open trade (the newest opened trade )
With the following two assumptions, you can get the last opened position as below
- Ticket number being sequential
- Highest position index used internally by MT5 = last added position.
Thank you I will try it