Is it possible to code and back test an EA in mt5 that has 20+ currency pairs? I do not want to test the currency pairs individually, I want to be able to optimize my indicator settings over all currency pairs at one time to achieve a universal set file. I understand that I would need to code an EA with all the pairs required within the code and I could then download all the currency pairs used data and optimize it on any currency pair and it will still give me results for the other built in currency pairs. Is this correct? I am worried that I will spend a long time coding the multi-currency EA and then not to be able to optimize it on all pairs (using the same settings) or even for it to run very slow in back testing.
Thank you for reading and I would appreciate if anyone can advise.
As long as you put them all in one code, you should be able to do that. This is one of the better feature of MT5 over MT4. But building such a code is not simple and very erroneous.
For simplicity, instead of optimization multiple currency pairs, you rather look at portfolio theory. It is short cut of doing multiple currency optimization.