same thing i want but still need help may be some one figure out soon waiting...........
Feel free to try freelance !
There is no error.
Strategy tester hangs.
It runs and opens 2 trades and then hangs.
I figured its with this function because when I disable this function, it runs.
Bugs on MT5?
There is no error.
Strategy tester hangs.
It runs and opens 2 trades and then hangs.
I figured its with this function because when I disable this function, it runs.
Bugs on MT5?
Sounds like its stuck in an endless while loop.
Thanks, you are a genius! The problem is with one of the loop.
However now, I just keep getting error:
"Error closing (Pair 1/2) #0, Error code 4753"
or
It closes losing trading pairs instead of winning ones.
Thanks, you are a genius! The problem is with one of the loop.
Now I just keep getting error:
"Error closing (Pair 1/2) #0, Error code 4753"
So you press F1 in the compiler, and type in the errorcode
https://www.mql5.com/en/docs/constants/errorswarnings/errorcodes

- www.mql5.com
Thanks!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
MQL5:
I'm trying to write a function to close by sequence.
There is no error after compilation, but it does not run.
I could not figure out why. Could you help?
Thank you!
Closing by order sequence.
i.e.
Deal 1 + Deal 2 has profited - close
Deal 3 + Deal 4 has profited - close
5 + 6
7 + 8
9 + 10
and so on ...
Deal 1 has the smallest order number and is opened at the earliest time.
Deal 10 has the biggest order number and is opened at the latest time.