I have a strategy that applies for several pairs. How should I design my EA for trading these pairs Simultaneously ?
(A) an EA that trades the only pair the EA attached to (mono-pair EA - I will have to attache it to each chart)
(B) an EA that trades the aimed pairs (multi-pair EA - I only have to attach it once to one chart)
How do you think ? Give me advices.
I think one should code for mono and then attach the EA to each chart. the reason being many brokers have different names for symbols. for example eurusd might be eurusdi or eurusdx with some brokers. so if code of eurusd and gbpusd, and then attach it to eurusdx, your EA will not trade in gpbusdx as it will look for GBPUSD, not gpbusdx.
So code for mono and have better control on where it runs and also which time frame for each symbol. But then again what the strategy demands, is a big question.
Is this your first multi-currency app? In general this is not easy to do, this requires several months of study..
My opinion is that, first of all, you should be clear about the strategy you want to implement. Then, you should be critical about your programming skills in general, and your knowledge of MQL5 in particular. As your apps become more and more complex they require a better understanding of all the technical aspects involved. That's the reality from my point of view of course.
In any case, if you look here, there's a lot of information, you'll find almost everything you need. Good luck!
Your can design the trading pairs as input parameters.
You can just adjust these inputs to trade one or more pairs.