Download MetaTrader 5
To add comments, please log in or register
They are making profit already using Freelance service. You can join them!
Vivek Vyas
203
Vivek Vyas 2014.07.17 18:55 

I have attached two different EA on same Symbol.Now when I allow autotrading to them orders are executed immediately like buy-buy-buy-buy non-stop one behind another.But when One of chart is closed the EA runs pefectly.They are two different stratergies that I want to run on EUR/USD.But I am unable to used both EA simultaneously hope you got the issue till now!!

Now how to resolve the problem.Has anyone encountered with the same issue.

I need to find some solution out of it. !!

whroeder1
13602
whroeder1 2014.07.17 19:44  
  1. Magic number help isolate the EA's trade from every other. Uuse a OrderSelect loop to see if any order is open by the EA. You should already be doing that, if you don't want one EA to open multiple orders.
  2. You can also use a OrderSelect loop to see if any order is open on the EA's pair and not open if there is.
  3. Either of the above is not going to prevent two EA's seeing their signal and both opening on the same tick. For that you must use a mutex surrounding the OS loop test and opening.
/
To add comments, please log in or register