ライブラリ: カレンダー - ページ 15

 
Denis Kislicyn #:
最近、テスターで作業するためにカレンダー全体をファイルに保存すると、約50秒後にタイムアウトでクラッシュすることに気づきました。
このエラーは再現しません。
 
Denis Kislicyn CalendarValueHistoryに 1ヶ月以上の期間を渡すと、関数は約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 #:

カレンダー値履歴は常にタイムアウトで終了する。

私の場合はそうではない。

 

誰を信じるべきか?