Bibliotecas: Calendário - página 15

 
Denis Kislicyn #:
Recentemente, notei que salvar todo o calendário em um arquivo para trabalhar com ele no testador começou a travar no tempo limite, após cerca de 50 segundos.
O erro não é reproduzido.
 
Denis Kislicyn CalendarValueHistory , a função começará a ficar suspensa por cerca de 50 segundos e, em seguida, será interrompida por tempo limite.
Isso não é reproduzido.
void OnStart()
{
  MqlCalendarValue Values[];
  
  Print(CalendarValueHistory(Values, D'2025.01.01'));
  Print(_LastError);
}
 
fxsaber #:
Ele não é reproduzido.
Parece estar relacionado a isso:


Talvez seja necessário adicionar a função wrapper para maior confiabilidade
 
fxsaber # :
O problema não é reproduzido.


Testei-o em diferentes servidores e terminais. O CalendarValueHistory sempre atinge o tempo limite. Foi criado um wrapper em uma ramificação próxima para contornar o 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 #:

O CalendarValueHistory é sempre encerrado com um tempo limite.

Esse não é o meu caso.