Skip to content
All library documents

Filtering MQL5 Economic Calendar Events by Currency, Importance, and Time

Article MQL5 articles

Summary

This article describes adding currency, importance, and time filters to an MQL5 economic calendar dashboard. Boolean settings enable or disable each filter; arrays define accepted currencies and event importance levels, while a time window selects events near the current server time. Events that fail an enabled filter are skipped, and the dashboard counts and displays only those that pass.

The examples show how these criteria can narrow a news feed to events relevant to traded currencies, expected impact, and a chosen period. The sample settings include all listed currency codes and importance levels, so users must adjust them to make those filters selective. The time window is centered on server time and uses a daily period, which the article says should be changed as needed. This is dashboard logic for organizing news, not evidence that filtering improves trading results or a tested event-trading strategy.

Key ideas

  • Currency, importance, and time criteria can be independently enabled for calendar events.
  • Events that do not meet an active filter are skipped before dashboard rows are created.
  • A configurable time window can include both recent past and upcoming events.
  • The sample accepts all listed currencies and importance levels, so those lists need tailoring to restrict results.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.