Skip to content
All library documents

Automating Strategy Optimization and Runtime Group Updates in MQL5

Article MQL5 articles

Summary

This installment describes an MQL5 workflow for optimizing trading strategy groups and making updated groups available to a running Expert Advisor through a separate EA database. The proposed database avoids recompiling the final EA whenever optimization produces new groups, and the article plans to test the update mechanism in the Strategy Tester before relying on it in live EAs. The final EA is intended to detect newly formed groups, reinitialize, and expose which group it is using.

The article also reorganizes the project into a shared library and strategy-specific project folders. Common components are placed in a structured include library, while project folders retain the EAs needed for project creation, optimization stages, and final trading. It outlines a multi-stage conveyor that optimizes individual strategies, selects groups, then combines and normalizes them before storing results. The described work is primarily software architecture and process design, rather than evidence for a profitable strategy. The update mechanism still requires correctness testing, and the available text does not establish its performance or reliability in live trading.

Key ideas

  • The workflow stores optimized strategy groups in an EA database so a final EA can load updates without recompilation.
  • A running EA is intended to detect new groups, reinitialize, and make its active group visible.
  • A shared library separates reusable components from files specific to each strategy project.
  • The optimization conveyor progresses from individual strategy optimization to group selection and combination.
  • The described database update mechanism is proposed for testing and is not presented as validated live-trading behavior.

Tags

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