CalendarValueHistory() freezing thread for 50 sec

timkrug
97
timkrug  

Execution of this line of code is freezing the thread for exactly 50 seconds.


if(CalendarValueHistory(mqlcalendar_value,iTime("EURUSD",PERIOD_D1,1),iTime("EURUSD",PERIOD_D1,0),NULL,NULL))


Thereafter, the program continues without error but also without returning calendar values.

I have been using this code for a long time without problems and suddenly this issue came up.


Any idea, what's going on here?

miltonhem Hempton
14
miltonhem Hempton  
I have the same problems with my homework.