How can I change the above code to allow an EA to trade only 1 trade per currency pair but still allow it to trade other pairs?? Also, I want to run multiple EA’s and allow the other EA’s to make their trades as well. I'm guessing that I need the code shown below to check against the magic number and currency pairs. Does someone have an example of this?
Inserted Code
{ total=OrdersTotal(); orders=0; for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderSymbol()==Symbol()) orders++; } if(total < 1) {