Hi, did you ever figure out what was wrong? I see that noone replied. I have the same situation. I call a function from OnTesterPass() and in this function MQLInfoInteger(MQL_OPTIMIZATION), MQLInfoInteger(MQL_FORWARD) and MQLInfoInteger(MQL_TESTER) are all false. Any advice would be apppreciated.
Goesta Torsten Hulden #:
Hi, did you ever figure out what was wrong? I see that noone replied. I have the same situation. I call a function from OnTesterPass() and in this function MQLInfoInteger(MQL_OPTIMIZATION), MQLInfoInteger(MQL_FORWARD) and MQLInfoInteger(MQL_TESTER) are all false. Any advice would be apppreciated.
Hi, did you ever figure out what was wrong? I see that noone replied. I have the same situation. I call a function from OnTesterPass() and in this function MQLInfoInteger(MQL_OPTIMIZATION), MQLInfoInteger(MQL_FORWARD) and MQLInfoInteger(MQL_TESTER) are all false. Any advice would be apppreciated.
MQLInfoInteger(MQL_FRAME_MODE) == true
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'm trying to run some code if in a tester optimization. My code below doesn't seem to work and MQLInfoInteger(MQL_OPTIMIZATION) seems to be false. The function is called from OnTesterPass. Should that make a difference?
Cheers
E