Skip to content
All library documents

Automating Multi-Dimensional Strategy Tests and Optimizations

Article MQL5 code base

Summary

The document outlines a controller for running repeated strategy tests and parameter optimizations. Its macros can cycle through configured date intervals, timeframes, symbols, and variable values. A stability mode combines testing across symbols, dates, and timeframes, while optimization modes filter and sort results, including by trade counts and unprofitable trades. A more complex workflow optimizes parameters and then tests the selected values for stability.

The program also checks historical data availability, supports communication with an expert advisor during optimization, and can schedule an optimization to run from the advisor. It allows up to ten variables at a time and can accommodate custom macros. These are workflow capabilities rather than evidence that a strategy is profitable: the document reports no test results, validation methodology, or safeguards against overfitting. Reliability depends on correctly configuring the arrays, test ranges, filters, and underlying strategy; the available description does not specify those implementation details.

Key ideas

  • Separate macros run tests across date intervals, timeframes, symbols, or variable settings.
  • A stability workflow combines symbol, date, and timeframe tests.
  • Optimization results can be filtered and sorted using trade and profitability criteria.
  • The controller can check historical data and communicate with an expert advisor during optimization.
  • No performance evidence or overfitting controls are described.

Tags

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