Librerías: Calendario - página 15

 
Denis Kislicyn #:
Recientemente me he dado cuenta de que al guardar todo el calendario en un archivo para trabajar con él en el probador empezaba a fallar al agotarse el tiempo de espera, después de unos 50 segundos.
El error no se reproduce.
 
Denis Kislicyn CalendarValueHistory , la función empieza a colgarse durante unos 50 segundos y luego se bloquea por tiempo de espera.
No se reproduce.
void OnStart()
{
  MqlCalendarValue Values[];
  
  Print(CalendarValueHistory(Values, D'2025.01.01'));
  Print(_LastError);
}
 
fxsaber #:
No se reproduce.
Parece estar relacionado con esto:


Tal vez desee añadir la función de envoltura para la fiabilidad
 
fxsaber # :
No se reproduce.


Lo he probado en diferentes servidores y diferentes terminales. CalendarValueHistory siempre se agota. Se ha creado un wrapper en una rama cercana para solucionarlo.

https://www.mql5.com/en/forum/496980

Error ERR_CALENDAR_TIMEOUT in CalendarValueHistory when passing more than 1 month interval - I am trying to fix a problem with the CalendarValueHistory function and how to fix it
Error ERR_CALENDAR_TIMEOUT in CalendarValueHistory when passing more than 1 month interval - I am trying to fix a problem with the CalendarValueHistory function and how to fix it
  • 2025.10.06
  • www.mql5.com
Would recommend just preloading it by a day or so and only checking every new m1 bar with a retry mechanism in case it doesn. I tested it on three different brokers, as well as on different servers and terminals. Now it times out everywhere if i call it with a period longer than a month
 
Denis Kislicyn #:

CalendarValueHistory siempre termina con un tiempo de espera.

Este no es mi caso.

 

¿A quién creer?