Skip to content
All library documents

Designing a Parallel-Strategy Expert Advisor in MQL4

Article MQL5 code base

Summary

This document describes an MQL4 Expert Advisor structure for running multiple trading strategies independently or together. Each strategy is treated as a separate instance of a shared EA class and can have its own identifier, trading schedule, risk controls, money management, entry rules, and exit rules. The listed examples combine moving-average crossovers, MACD breakouts, and Heiken Ashi signals.

The EA is presented as a learning template for basic strategy development, with the possibility of adding further strategy classes. The document gives no entry parameters, test results, performance comparisons, or implementation details for the listed systems, so it does not establish that any strategy is profitable. Its value is primarily architectural: it illustrates how separate strategy instances and controls can be organized within one EA.

Key ideas

  • The EA can run several strategy instances in parallel or allow the user to select individual strategies.
  • Each instance has its own identifier, timing, risk settings, and entry and exit rules.
  • The example strategies use moving-average crossovers, MACD breakouts, and Heiken Ashi signals.
  • The code is framed as a starting template, with no performance evidence or detailed parameter guidance.

Tags

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