Same EA on multiple pairs not running at the same time.

 

Hi guys,


I've created a simple EA. It works if being used on 1 pair. However, when I applied the EA on another pair as well, it doesn't works simultaneosly. Meaning to say that, when for example, the EA opened a trade on EURUSD, it won't run on GBPUSD. However, when the trade closes, it will open another trade on GBPUSD but not on EURUSD.


So, I did some "print" and it seems that when a trade on EURUSD was opened, it will only run the EA on EURUSD. and vice versa.


Any thoughts on this? Maybe I missed something out?


Best regards.. ^_^

 
psyntium:

Hi guys,


I've created a simple EA. It works if being used on 1 pair. However, when I applied the EA on another pair as well, it doesn't works simultaneosly. Meaning to say that, when for example, the EA opened a trade on EURUSD, it won't run on GBPUSD. However, when the trade closes, it will open another trade on GBPUSD but not on EURUSD.


So, I did some "print" and it seems that when a trade on EURUSD was opened, it will only run the EA on EURUSD. and vice versa.


Any thoughts on this? Maybe I missed something out?


Best regards.. ^_^

Your EA is bad coded. You have to review the client/server code.


Use Symbol() instead of naming the currency.

Use MarketInfo() for currency information.

Etc....


If you need fast help post code....

Reason: