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.
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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Using the MQL5 Economic Calendar for News Filter (Part 6): A Filter an EA Can Hold Two Of