This project is read-only.

OrderSend - how to use it correctly?

Oct 21, 2015 at 12:02 AM
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 6:11 AM
Hey guys, anyone works with it? Any ideas?