Forum

Does MQL4 support any form of asynchronous notification?

Hello, Is there any way of placing orders asynchronously in MQL4? (that is, at any time other than a new tick notification in start() function) What I'm trying to do is to place a buy stop and/or sell stop orders within 2 pips of the price just before a news release. I don't want the order to be

Pending orders execution process on trade server

Hello, Does anyone know the exact sequence of order execution from the time it’s placed by the trader (via OrderSend()) to the time it gets executed on the trade server? My current understanding is that once any order (pending or market) is placed by the trader on MT4 client, it gets passed to the

OrderSelect() fails

Hello, The following code always fails on OrderSelect() and the return error code is 0 if (OrderDelete(TicketNum, CLR_NONE ) == TRUE) { ... if ( OrderSelect (TicketNum, SELECT_BY_TICKET) != TRUE) { Alert ( "Server failed to select order ticket=" , TicketNum, " Err="