Skip to content
All library documents

Preparing a Multi-Currency Expert Advisor for Live Trading

Article MQL5 articles

Summary

This installment covers operational safeguards for moving a multi-currency Expert Advisor from testing toward live accounts. It describes configurable symbol-name mappings for broker-specific prefixes, suffixes, or other naming differences; a mode that stops opening trades and works toward closing existing positions; and saving enough EA state to resume after a terminal restart. The design passes replacement rules through the advisor and strategy objects, and makes recovery dependent on persisted runtime information.

The article presents implementation steps and reports that a restart test resumed the EA with its open positions and produced generally good results, though the excerpt gives no detailed measurements. These mechanisms address practical conditions absent from the strategy tester, but the work remains incomplete: chart status displays and operation without the optimization database are deferred. The material concerns live-trading reliability, not evidence that the underlying strategy has an edge.

Key ideas

  • Map optimized instrument names to the symbols used by each broker through configurable rules.
  • Provide a closing mode so an EA can wind down existing positions before changing its configuration.
  • Persist runtime state so the EA can restore its operation after a terminal restart.
  • Test real-account safeguards separately because the strategy tester does not reproduce all live conditions.
  • The article leaves further deployment improvements for later work.

Tags

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