Dear all,
I want to use CalendarEventByCurrency function but it return Error 5041 when call it first time after opening MT5 terminal. It also takes 20seconds before returning error. When I call it second, third, fourth time it works OK.
What can I do to work first time already?
And this is error that I get first time:
CalendarEventByCurrency- 5401 – ERR_CALENDAR_TIMEOUT (request time limit exceeded),
I hope someone know answer or is this is BUG that can be solved with upgrade.
BR, Igor
calling CalendarEventByCurrency function onTimer will freeze my chart and EA for one minute. This is not ok for users.
How can I call some function in new thread or in some way with async function call in MetaTrader 5?
I want to call function CalendarEventByCurrency in paralel on start of program once that next time I call it will work instantly.
CalendarEventByCurrency("EUR",events);
Can anyone have experience with threads or async function call in MT5? Or how to handle calling this function without delay of one minute?
calling CalendarEventByCurrency function onTimer will freeze my chart and EA for one minute. This is not ok for users.
How can I call some function in new thread or in some way with async function call in MetaTrader 5?
I want to call function CalendarEventByCurrency in paralel on start of program once that next time I call it will work instantly.
Can anyone have experience with threads or async function call in MT5? Or how to handle calling this function without delay of one minute?
This is not acceptable with hundreds of users. I hope mql5 finds some solution for this bug.
This is not acceptable with hundreds of users. I hope mql5 finds some solution for this bug.
In fact this is not a bug. Something else although is, and it is wanted in such a way. - You will notice once you try to read current event values. - They will be massive delays between updates on the calendar web-page and the calender API in MQL. - So its only usable to know when an event takes place, but you cannot know the actual values to that event.
Anyways, there arre lots of other "inacceptables" we have to live with. - And your complaint isnt even really anything to be excited about. - Just solve it properly, and you get what you want.
In fact this is not a bug. Something else although is, and it is wanted in such a way. - You will notice once you try to read current event values. - They will be massive delays between updates on the calendar web-page and the calender API in MQL. - So its only usable to know when an event takes place, but you cannot know the actual values to that event.
Anyways, there arre lots of other "inacceptables" we have to live with. - And your complaint isnt even really anything to be excited about. - Just solve it properly, and you get what you want.
I solve issue with this function call:
CalendarValueHistory(values,date_from,date_to, NULL, "EUR")
This function works great!
Really ? why logical ?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear all,
I want to use CalendarEventByCurrency function but it return Error 5041 when call it first time after opening MT5 terminal. It also takes 50seconds before returning error. When I call it second, third, fourth time it works OK.
What can I do to work first time already?
And this is error that I get first time:
CalendarEventByCurrencyI hope someone know answer or is this is BUG that can be solved with upgrade.
BR, Igor