라이브러리: 캘린더 - 페이지 15

 
Denis Kislicyn #:
최근에 테스터에서 작업하기 위해 전체 캘린더를 파일에 저장하면 약 50초 후에 시간 초과로 인해 충돌이 발생하기 시작했습니다.
이 오류는 재현되지 않습니다.
 
Denis Kislicyn CalendarValueHistory에 한 달 이상의 기간을 전달하면 함수가 약 50초 동안 중단되기 시작한 후 시간 초과로 인해 충돌합니다.
재현되지 않습니다.
void OnStart()
{
  MqlCalendarValue Values[];
  
  Print(CalendarValueHistory(Values, D'2025.01.01'));
  Print(_LastError);
}
 
fxsaber #:
재생산되지 않습니다.
이와 관련이 있는 것 같습니다:


안정성을 위해 래퍼 기능을 추가하고 싶을 수도 있습니다.
 
fxsaber # :
재현되지 않습니다.


다른 서버와 다른 단말기에서 테스트했습니다. CalendarValueHistory는 항상 시간이 초과됩니다. 이를 해결하기 위해 가까운 지점에서 래퍼를 만들었습니다.

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는 항상 시간 초과와 함께 종료됩니다.

저는 그렇지 않습니다.

 

누구를 믿어야 할까요?