OrderSend - how to use it correctly?

Oct 20, 2015 at 11:02 PM
Hi, I'm trying to send order like this:
_metaTrader4.MqlScope(mql =>
                        Ticket = mql.OrderSend(Instrument, order, volume, price, slippage, sl, tp);
When I'm checking the Ticket it's always zero. In order to send the order I have to run this call in the loop until Ticket != 0. But it has its drawback - we can open several orders (seems like requests are queued on the server which is logical). How to guarantee that only one order is sent? Any events that order is opened etc?
Oct 23, 2015 at 5:11 AM
Hey guys, anyone works with it? Any ideas?