Thanks for the fast reply. I am actually not trying to fit multiple pairs in one EA, but I’d rather want to apply the same EA to different Charts through a script.
Basically what I am trying to do is to attach an EA to different charts in one go. The EA has some input variables. For these variable the value that needs to be input depend on the symbol of the chart.
Now I am attaching this EA to each chart manually, changing the input variables according to the symbol, but it’s quite tedious and time consuming considering that I am doing it for 10+ crosses;)
e.g. Assume you have one EA with one input variable (e.g. leverage) and this variable should have a different input depending on the pair showed on the chart (i.e. 1 for EURUSD, 2 for AUDUSD etc).
You can open the EURUSD chart, attach the EA with the variable set to 1, then open the AUDUSD chart and set the variable for this pair to 2 etc.
I’d like to have a script that does it for me. I have actually just tried with the function ChartApplyTemplate() and it works;) The only drawback is that I have to create different template for each cross and specify the variable of the input variable in each template. Doable, faster, but if there is anything even less time consuming that would be great;)
Let me know if you can help,