Skip to content
All library documents

Managing Per-Symbol Parameters in Multi-Currency MQL5 Expert Advisors

Article MQL5 articles

Summary

This article presents a file-based pattern for managing parameters in a multi-currency MQL5 Expert Advisor when a long list of inputs becomes difficult to maintain and the platform limits the number of inputs. A text file supplies the symbol list, while separate files hold each symbol’s strategy settings. The Expert Advisor keeps one parameter set for optimization, can read stored values or current inputs, and can rewrite a symbol’s saved parameters after optimization.

The workflow supports testing one selected symbol at a time or iterating across the configured list to obtain a combined result. The article describes dynamic arrays and file-reading and writing functions as implementation components, and explains the configuration process. It presents a cumulative tester result but the provided text contains no performance figures or comparison against alternatives. The approach simplifies parameter organization; it does not remove the need to validate each symbol’s settings, and symbols must be listed in advance because the tester cannot access Market Watch directly in the described setup.

Key ideas

  • A text file can hold the symbols used by a multi-currency Expert Advisor.
  • Per-symbol parameter files allow one reusable input set to drive optimization across symbols.
  • A mode setting selects whether the Expert Advisor reads saved values or uses current inputs.
  • After optimization, a rewrite option saves selected settings for the relevant symbol.
  • The article describes testing symbols individually or as a combined set, without detailed performance evidence.

Tags

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