If economic calendar was written in txt file (or some other file) downloaded from some/any source - so yes (there are free NewsTrader EAs for trading and backtesting). You can look at the following old links/threads/etc (something shouldbe fixed and improved because those tools are very old ones but if you are the coder so you can do it).
And this is new summary -
All about Calendar tab and Macro Economic Events
Hello Sergey, thanks for you reply.
But I was talking about the MQL5 Economic Calendar that is built-in. I was in a rush and forgot to include that in the Title, sorry.
Yes, I corrected.
Do you know why is this forbidden on Tester?
bool base_loaded = CalendarValueHistory(base_values, from_date, to_date, NULL, base_currency);
Print("Updating... Error code ", GetLastError());
Updating... Error code 4014
Error code 4014 stands for "function not allowed" as far as I know. But the docs say nothing about it. Is this a bug or am I missing something?
PD: Worst part is that on tester "base_loaded" is "true" and no events were loaded into "base_values".
I am not a coder sorry ..
code 4014 stands for "function not allowed" as far as I know. But the docs say nothing about it. Is this a bug or am I missing
Have you solved the Calendar implementation issue by any chance?
Yes, with a little workaround the Economic
Calendar can also be used in the tester: see this https://www.mql5.com/en/forum/326554#comment_13913614
thread and the links that I mention there (just click on the translate button for the links in the german forum).
... and because many people seem to have problems to get the economic calendar working (=in both tester and live trading) and this topic seems
to come up over and over again, I now added a detailed description as comments directly in the file,
so here it is with the update: