Skip to content
All library documents

Automating Multi-Symbol and Multi-Timeframe MT5 Backtests

Article MQL5 code base

Summary

This library is designed to queue repeated MT5 Expert Advisor tests across combinations of symbols, timeframes, and date ranges. It supports both individual runs and optimization, including forward testing. The stated research uses include comparing a trading system across markets and periods, and checking whether optimization on successive intervals appears promising.

The examples show how to build a task list directly or generate one from Market Watch symbols and selected chart periods. The resulting runs use the tester’s configured settings, and their results can be reviewed with standard MT5 tools. The document describes a workflow utility rather than a trading method and supplies no evidence that optimization improves out-of-sample performance. It also notes that the tool calls Windows API functions through a DLL, requires DLL permission, and may not be suitable for the Market without modification; interrupted task sequences can be resumed.

Key ideas

  • A task list can specify symbols, timeframes, and date intervals for repeated MT5 testing.
  • The library supports optimization and forward runs as well as single Expert Advisor tests.
  • Tasks can be generated from selected Market Watch symbols and timeframe choices.
  • Sequential interval optimization is proposed as a way to explore auto-optimization prospects, but no results are provided.
  • The tool requires DLL access and supports resuming an interrupted sequence.

Tags

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