Multiple Automated Trades.

 

Greetings,


i have a question about running the EA for multiple Financial Instruments simultaneously.

I have looked at some examples; and all of them associate a EA to the current selected Instrument for trading.


Would it be possible to have 1 instance of the EA and run it on all instrumnts simultaneously?


I am expecting to trade on about 20 instruments concurrently 24/5.

 

Of course, it's possible.

I recommend: Do not trade multiple currencies in one EA.

  1. You can't use any {MT4: predefined variables, MT5: predefined variables,}

  2. Must poll (not OnTick, unless you use specific indicators)
              The Implementation of a Multi-currency Mode in MetaTrader 5 - MQL5 Articles (18 February 2011

  3. and usually other problems, e.g. A problem with iBarShift - MQL4 programming forum - Page 2

  4. You must handle History {MT4:4066/4073 errors: Download history in MQL4 EA - MQL4 programming forum, MT5: Timeseries and Indicators Access /  Data Access - Reference on algorithmic/automated trading language for MetaTrader 5.}

  5. Code it to trade the chart pair only. Look at the others if you must. Don't assume that Time[i] == iTime(otherPair, TF, i) always use iBarShift.

Then put it on other charts to trade the other pairs. Done.
Reason: