Skip to content
All library documents

News-Based Trading Pauses Using Two Economic Calendar Sources

Article MQL5 code base

Summary

This document describes an Expert Advisor template that checks economic news from two calendar sources and pauses a user’s trading function around scheduled releases. It can distinguish weak, medium, and strong events, with a separate setting for Non-Farm Payrolls. For each category, the user can configure whether to act and how long before and after a release to suspend trading. The template can also draw event markers on a chart and filter displayed news by the selected symbol or show all events.

The described decision process is a trading gate: when a relevant event falls within the configured window, the normal trade-management function is not called. If several releases coincide, the template considers the strongest. The document offers configurable event handling, not a tested entry or exit strategy, and gives no evidence that pausing improves results or prevents slippage. Calendar coverage, timestamps, time-zone alignment, and the user’s trade logic all affect how it behaves in practice.

Key ideas

  • The template pauses normal trading around scheduled economic releases.
  • Users can enable separate filters and before-and-after windows for event importance levels and Non-Farm Payrolls.
  • When several events coincide, the logic considers the strongest event.
  • Chart markers and symbol-specific news filtering are configurable.
  • The document provides no performance evidence for the trading pause.

Tags

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