Skip to content
All library documents

A Momentum-Based Expert Advisor for Scheduled News Releases

Article MQL5 articles

Summary

This article presents an MQL5 design for an automated news trader. It stores scheduled releases in a CSV file, loads them into an object-oriented Expert Advisor, and checks a momentum indicator around each release time. Within the configured window, momentum above or below preset thresholds selects a sell or buy; the EA then opens a position with specified stop-loss and take-profit distances. The design separates news data, indicators, trade state, and decision logic into classes and uses terminal file and trading functions.

The article is primarily an implementation guide rather than a performance study. It supplies code structure and example settings, but reports no measured returns, validation, or comparison against a baseline. Its directional rule reacts to momentum near a scheduled event rather than modeling the announcement surprise or its economic context. A live implementation would also depend on accurate release times, correct handling of positions and orders, and execution conditions around volatile announcements; the text does not establish that the example is profitable or robust.

Key ideas

  • The EA reads scheduled news releases from a CSV file through an object-oriented design.
  • It uses momentum thresholds during a time window around each release to choose a trade direction.
  • Positions receive configured stop-loss and take-profit levels.
  • The article explains software structure and implementation but provides no trading performance evidence.
  • Release timing, execution conditions, and position handling are important dependencies for the approach.

Tags

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