You need to share your whole source code. Maybe someone can find the cause.
It's thousands of lines of code, distributed in multiple files and libraries.
I've checked the relevant parts already before writing, and done step by step debugging to chek the execution path.
There's nothing that can explain what is happening, it's not a code problem.
Moreover it's been happening only recently, I've been optimizing and verifying single test results for years now, and I've never had such a problem.
I strongly believe there's something with the optimization engine.
Update: I downgraded Metatester to build 4205 and it works fine.
I hope Metaquotes will take action and fix this soon.
Update: I downgraded Metatester to build 4205 and it works fine.
I hope Metaquotes will take action and fix this soon.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everybody,
I'm experiencing a problem with Metatrader 5 optimizer which I've never encountered before. I don't know since when this is happening.
When I run a single test from the optimization result list, sometimes the result is different: different number of trades, profit etc.
Here is an example:
If I double click the highlighted result this is what I get:
These are my settings:
I'm using Tick Data Suite data in this example, but I've also tried broker data and the problem is the same.
MetaTrader version is 5.0 build 4260
I do not use Global Terminal variables in my code, no timers, nothing that can generate randomness of any kind.
I've tried disabling all tester agents but one, to force sequential execution of each optimization run.
I've tried both Slow Complete algorithm and Fast Genetic based algorihm.
I've tried all the proposed solutions that I've found in similar threads, including installing the Metatrader 5 Strategy Tester Agent and using Local Network farm instead of local cores.
Nothing worked.
Optimization is a crucial step in my strategy development process, now I am stuck and I don't know what to do.
I really hope someone can help me.
Best regards,
Francesco