You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: News Filtering with MetaTrader 5 Economic Calendar and CSV Fallback.
This article presents a self-contained news filter module for MetaTrader 5 built on the platform's economic calendar API. It implements symbol-to-currency mapping, pre- and post-event trading pauses, and optional position size reduction on high-impact days, with a CSV-based fallback for the Strategy Tester. A demo EA and live chart dashboard show integration and verification in both live and backtest environments.
Handling economic news in MQL5 is typically managed in one of two ways: ignoring news events entirely or applying fixed trading restrictions. While a manual time filter might cover a scheduled release like Non-Farm Payrolls, it fails to address unscheduled volatility, emergency central bank meetings, or unexpected data revisions. This approach leaves the Expert Advisor vulnerable to the spread expansion and slippage that occur outside of predefined windows. Consequently, the strategy's live performance often suffers from execution issues that were not present during the initial backtest.
This article presents a news filter module developed using only built-in calendar functions. The module pauses trading before high-impact events, resumes automatically after a configurable post-release delay, and provides a secondary function that reduces position size rather than blocking entirely on days with multiple scheduled events. A companion logging script generates a CSV-based news calendar that the filter can read in the Strategy Tester, where the live calendar API is unavailable.
Author: Ushana Kevin Iorkumbul