Bibliothèque: Calendrier - page 15

 
Denis Kislicyn #:
Récemment, j'ai remarqué que l'enregistrement du calendrier complet dans un fichier pour le travailler dans le testeur commençait à planter au bout d'environ 50 secondes.
L'erreur n'est pas reproduite.
 
Denis Kislicyn CalendarValueHistory , la fonction commence à se bloquer pendant environ 50 secondes, puis se bloque en raison d'un dépassement de délai.
Le problème n'est pas reproduit.
void OnStart()
{
  MqlCalendarValue Values[];
  
  Print(CalendarValueHistory(Values, D'2025.01.01'));
  Print(_LastError);
}
 
fxsaber #:
Il n'est pas reproduit.
Il semble qu'il y ait un lien avec ceci :


Il serait peut-être souhaitable d'ajouter la fonction wrapper pour plus de fiabilité
 
fxsaber # :
Le problème n'est pas reproduit.


Je l'ai testé sur différents serveurs et différents terminaux. CalendarValueHistory se bloque toujours. Un wrapper a été créé dans une branche voisine pour contourner le problème.

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 se termine toujours par un délai d'attente.

Ce n'est pas le cas pour moi.

 

Qui croire ?