I've been told that MT4 can only support 16 order threads. Is it true ?
How can I verify this limtation, technically ?
Thank you William, sorry but I don't really understand how IsTradeContextBusy
would help as it simply Returns true if a thread for trading is occupied by another EA or not.
sounds very slow to me... by the time it would tell you if a thread for trading is occupied by
another EA or not, context may change quickly.
From my understanding, to find this order threads limit number, I would need to open n charts that would
simultaneously send or modify or delete orders using EAs.
Is it possible "simultaneously" OrderSend/Modify/Delete are so quick...
I would need to test 2, 3, 4.... n charts, until one of the OrderSend/Modify/Delete returned value would be false and its error code = 4 = Trade
server is busy, is it correct?
Is the order threads limit number :
1) per Account?
2) per Magic number?
3) per Terminal?
OrderSend sends the request, network delivers, placed in the server queue. Once it reaches the top of the queue, you get
filled or not, and the result delivered back to the terminal. Normally it is the 20-200 milliseconds the network takes to deliver is
the limiting factor, but it can take
minutes to do a trade because of the servers during news.