All about Calendar tab and Macro Economic Events. - page 8

Using the MQL5 Economic Calendar for News Filter (Part 6): A Filter an EA Can Hold Two Of

Using the MQL5 Economic Calendar for News Filter (Part 6): A Filter an EA Can Hold Two Of

The news filter built so far reads the broker's calendar when the EA trades live and a CSV file when the Strategy Tester drives it; it gives the releases named in a rule table more room than the calendar's importance tag alone would, blocks entries, closes positions, suspends and restores stops, and keeps a suspension across a terminal restart. Apart from the tier scale and the rule table, which the previous part moved into two headers, all of it sits at file scope in one Expert Advisor. This is manageable as long as you have only one EA. Putting the same protection into a second EA means copying most of the file and maintaining two versions. A fix in one can leave the other unchanged.
Using the MQL5 Economic Calendar for News Filter (Part 5): The Tier the Calendar Does Not Have
Using the MQL5 Economic Calendar for News Filter (Part 5): The Tier the Calendar Does Not Have
  • 2026.10.29
  • www.mql5.com
This part extends the news filter with an ordered tier scale that adds a special tier above the broker's High, per‑event time windows, and one classifier shared by live calendar data and historical CSV. A rule table (with optional CSV overrides) promotes or demotes specific releases and can set custom windows. A diagnostic script prints your broker's calendar, event codes, and server time so your rules match what the terminal actually reports.