Skip to content
All library documents

Building a Calendar-Based News Breakout Strategy in MQL5

Article MQL5 articles

Summary

The article explains how to build an MQL5 expert advisor around scheduled economic news. It describes a helper class for representing calendar events, saving broker calendar history to a binary file, and loading that history in the strategy tester, where live calendar calls are unavailable. A backtest EA uses the stored events to evaluate breakout logic, followed by code for live execution. The underlying premise is that scheduled releases can trigger volatility and moves through established price levels.

The author reports testing more than 1,600 samples across five years of tick data and describes the results as promising. This is a claim from the article, not enough detail to assess robustness: the excerpt provides no full performance statistics, market coverage, or independent validation. News spreads and rapid price changes can undermine apparent profitability, so results need realistic costs and execution assumptions. Calendar data availability and broker conventions may also affect reproducibility.

Key ideas

  • The approach uses scheduled economic events as timing points for breakout trades.
  • Calendar history must be stored separately to make event data available in the strategy tester.
  • The helper classes organize event attributes and provide file loading and saving.
  • The article reports promising backtests but does not provide enough detail here to judge their robustness.
  • Wide spreads and fast market moves around releases are material strategy risks.

Tags

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