MQL5 Multi-Currency Trading with Broker Suffixes and Session Filters
Summary
This installment describes changes to a multi-currency MetaTrader 5 expert advisor so it can recognize broker-specific prefixes or suffixes on forex and metal symbols, and limit trading to selected sessions. It outlines a fixed universe of 30 forex and metal pairs, with options to trade all pairs, currency-specific groups, or trader-entered selections. The symbol-matching method is intended for standard forex and metal instruments; the article notes that it does not cover custom symbols or indexes.
For session control, the advisor offers custom start and stop times or presets for New Zealand, Sydney, Tokyo, London, and New York, plus day-of-week switches. The article explains that broker server time varies relative to UTC and provides example session hours in UTC. It reports Strategy Tester runs using New York, Tokyo, and custom sessions, but supplies no numerical performance results in the supplied text. The EA is presented as a learning example; session settings and pair selection are configurable, and the article does not establish that any particular combination is profitable.
Key ideas
- The EA maps standard forex and metal names to broker symbols with prefixes or suffixes.
- Traders can select all supported pairs, currency groups, or manually entered pairs from the predefined list.
- Session filters offer preset market hours or a custom start and end time.
- Separate weekday switches allow trading to be enabled or disabled for each day.
- The symbol detection method is limited to forex and metals, and the reported tests provide no numerical results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.