| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Why no simultaneous trades not happening?
Could someone explain to me why my EA never executes simultaneous trades in different pairs. It can execute in all pairs but cannot do it simultaneously. Each time a trade opens in one pair, it stalls all potential trades with other pairs.
Here's the code that defines when to start the trade: total=OrdersTotal(); // check the total active orders for(count=0;count<total;count++) // if there are active totals then proceed { OrderSelect(count, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && OrderSymbol()==Symbol() && (OrderMagicNumber()==MAGIC)) { <code>: The code here is never reached if one order is open in a specific pair. Thanks for your help in advance. If you need the whole code, please let me know so I can send it to you by email. |
|
|||
|
Server communication
I think the order takes a while to reach the brokers server and be verified there. This is only a guess. One ea I had was made to trade at exactly 12H00 - but could only do so on 2 currencies simultaneously else it got a 'dispatch busy' kind of error.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sam trades | lorix_ | Expert Advisors - Metatrader 4 | 19 | 04-25-2007 03:10 PM |
| Delaying trades | huhenyo | Expert Advisors - Metatrader 4 | 1 | 05-17-2006 08:17 AM |
| Delaying trades | huhenyo | Questions | 1 | 05-10-2006 03:46 PM |
| All EA TRADES disappeared | mj10 | General Discussion | 5 | 01-30-2006 10:06 AM |