Skip to content
All library documents

Managing Multiple Trading Symbols from One MetaTrader Chart

Article MQL5 articles

Summary

This article explains how to extend a MetaTrader 5 news-trading Expert Advisor so manual trade controls can act on several selected symbols from a single chart. A reusable trading-buttons class combines chart controls, symbol checkboxes, order functions, and logic for resolving requested symbol names to the broker’s available instruments. The interface synchronizes checkbox selections with the EA, while a toggle lets the trader choose between single-symbol and multi-symbol operation. The described controls include market and pending orders, as well as position and order management actions.

The material is primarily an implementation guide, with code-oriented discussion of UI creation, event handling, cleanup, and logging; it does not provide measured trading results. Symbol matching checks exact names and then searches for prefix or substring matches, so broker naming conventions can affect which instrument is selected. The feature supports faster manual execution during news events, but the article does not evaluate whether news breakouts are profitable or quantify execution quality, slippage, or risk across simultaneously traded pairs.

Key ideas

  • A chart-based interface can expose manual trading controls for several symbols through checkboxes.
  • The trading class keeps requested symbols, resolved broker symbols, and checkbox states aligned by index.
  • Symbol resolution tries exact matches before searching for broker-specific prefixes or contained names.
  • The EA synchronizes checkbox selections with its symbol-selection state when the user changes settings.
  • The article describes software functionality but provides no evidence of trading profitability or execution performance.

Tags

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