Alberto Tortella:
Use OrderSelect() for OrderTotals() to identify the changed situation. If you keep your current positions/ticket in an array you can identify what is new or closed and compare new and old positions/ tickets
Hi all, my expert writes a Global Variable in this way
but when half position is closed on profit, the OrderTicket() is changed from the broker and the expert is not able to modify the Global Variable properly.
Is there a way to rescue the link to old OrderTicket() ?
Thank you!

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
Hi all, my expert writes a Global Variable in this way
but when half position is closed on profit, the OrderTicket() is changed from the broker and the expert is not able to modify the Global Variable properly.
Is there a way to rescue the link to old OrderTicket() ?
Thank you!