This code is great but i was wondering if you could share the source of isOptimizerStart
Ive never used assembler before, Ive managed to compile and get it running. Just trying to work out how to determ the first pass of the optimisation
Thanks,
BTW this is a really cool way of implementing this, im impressed ;)
OK I think i worked it out
In MT4's OnInit call OnTesterInit_MT4 and save the retern value, that will tell you iff its the first pass or not

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 want to share my code for detect the events like MT5 OnTesterInit() or OnTesterDeInit().
Code in MQL4
The Tester of MT4 only use one thread for the optimizer, when the thread is created, this is the moment for the first pass, and when the current thread finished the optimizer ended.
Code of the dll in asm (compiled with fasm).
The code is incomplete, only is an idea... you must complete.