Skip to content
All library documents

Managing Multi-Strategy Trading Portfolios with XML Configuration

Article MQL5 articles

Summary

This installment explains how a MetaTrader trading engine can coordinate multiple independent strategy instances within one Expert Advisor. Its CStrategyList manager distributes events such as ticks, timers, and book updates to each strategy, while handling strategy creation and interaction with a shared control panel. The article presents XML as a way to describe a portfolio, including each strategy's identity, symbol, timeframe, magic number, starting trade mode, and individual parameters. A factory can then create and configure instances from that description, including repeated strategy types with different settings.

The author describes loading these portfolios in the Strategy Tester, where the required symbols are loaded and each strategy follows its own rules. Visual testing can help inspect entries and exits, but the text provides no comparative performance results or evidence that combining strategies improves returns or reduces risk. The material focuses on software architecture and configuration; portfolio behavior still depends on the strategies, their interactions, and appropriate testing.

Key ideas

  • A strategy-list manager can dispatch trading events to several strategy instances in one Expert Advisor.
  • XML records strategy identity, instruments, timeframes, modes, and individual parameters for portfolio construction.
  • A factory can instantiate the same strategy with different configurations.
  • The approach supports testing multi-instrument strategy groups in the platform's Strategy Tester.
  • The article explains implementation and workflow, not portfolio performance or risk reduction evidence.

Tags

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