I needed to put the code in OnStart() and had to run it on MetaEditor, so then I could see all events on [Experts] in Toolbox.
leaN5525: I'm currently working on getting calendar events and coded the following , but it gives me an error of "array out of range in 'file.mq5' (113,26)" in journal when I backtest. could someone point out what i did wrong?
Arrays start at index [0] and not index [1]. Also, please note that the OnTick event handler runs on every single tick, and since the Economic Calendar does not update all the often, it will be inefficient to poll it on every single tick. If you really want to check it very often, then once per minute is more than sufficiently aggressive poling.
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 currently working on getting calendar events and coded the following , but it gives me an error of "array out of range in 'file.mq5' (113,26)" in journal when I backtest.
could someone point out what i did wrong?