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
Further controls using the returning callbacks from v2 are attached, with unchanged executed sources/templates and raw TSV logs (unmodified timestamps; no added header). The README defines all columns and test bounds.
Ok, so with this code you can actually reproduce the error 4102, right ?
Please provide your config (from your MT5 log) : https://www.mql5.com/en/forum/449342
I know the error 4102 very well from experience, I know why it triggers, but I don't know what is the exact trigger in your case.
I would also need your MT5 Experts and Journal logs at the time you run the test code. Because, my computer is very fast and I was never able to reproduce the error 4102 with it, so I need to see the logs when it's reproduced. Once I have your logs, I will check again.
I reproduced 4102 again in fresh test124 and captured the platform logs through a graceful shutdown. The EA reader, indicator reader and template are byte-identical to test98/v3. Only the controller's completion path now requests TerminalClose(0); it does so after both readers finish, not during the failed call.
I'd be interested to know what happens on your machine if you insert Sleep(2000) in your indicator code like so:
The official Sleep documentation says it cannot be called from custom indicators: https://www.mql5.com/en/docs/common/sleep . Thus I cannot treat it as an effective two-second indicator delay or a demonstrated fix.
My bad. I thought that Sleep() had been updated for universal use. Obviously, it hasn't.
I keep circling back to the fact that Alain doesn't experience the code "bug" on his super-fast computer.
In the EA, Sleep() can be used to reduce resource usage: