
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
Is there any way of Mocking or injecting known / controlled data into MQL4 (or even MQL5)?
From time to time I have certain conditions I'd like to check, or a method I want to test. Right now all I can do is to pull the method out to a new project, and replace any inbuilt functions (OrderOpenPrice() for example) with a parameter and pass this in. This then means I need to maintain 2 copies of my code, which will inevitably lead to an issue when I forget to copy the newest version of a method into my EA!
Thanks