better.trader every.day:
Do the Calendar Economic Functions in MQ5 work during testing or optimization? It seems it doesn't, but I wonder if I am doing using them incorrectly.
this is the code that works find in live trading, but always returns false during testing/optimization.
The calendar does not work in the tester off the shelf. You need to make some work to export/import the records into the tester. You can find an example of such implementation in the algotrading book.
MQL5 Book: Advanced language tools / Economic calendar / Transferring calendar database to tester
- www.mql5.com
The calendar is available for MQL programs only online, and therefore testing news trading strategies poses some difficulties. One of the solutions...
Thank you. I will take a look at the book.
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
Do the Calendar Economic Functions in MQ5 work during testing or optimization? It seems it doesn't, but I wonder if I am doing using them incorrectly.
this is the code that works find in live trading, but always returns false during testing/optimization.