Librerie: Calendario - pagina 15

 
Denis Kislicyn #:
Recentemente ho notato che il salvataggio dell'intero calendario in un file per lavorarci nel tester ha iniziato a bloccarsi al timeout, dopo circa 50 secondi.
L'errore non viene riprodotto.
 
Denis Kislicyn CalendarValueHistory , la funzione si blocca per circa 50 secondi e poi si blocca per timeout.
Non viene riprodotto.
void OnStart()
{
  MqlCalendarValue Values[];
  
  Print(CalendarValueHistory(Values, D'2025.01.01'));
  Print(_LastError);
}
 
fxsaber #:
Non viene riprodotto.
Sembra essere collegato a questo:


Forse si vuole aggiungere la funzione wrapper per l'affidabilità
 
fxsaber # :
Non viene riprodotto.


L'ho testato su diversi server e diversi terminali. CalendarValueHistory va sempre in time out. È stato creato un wrapper in un ramo vicino per risolvere il problema.

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 termina sempre con un timeout.

Questo non è il mio caso.

 

A chi credere?