Please don't create topics randomly in any section. It has been moved to the section: MQL4 e MetaTrader 4

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 have the below trailing stop loss coded, but it seems to be affecting all the open orders the same way, making all of them converge to the parameters of only one (the most recent) and it always prevents older orders from reaching take profit.
How can I best change this code so that Position Modify affects ticket by ticket?