How to pause OrderSend ???
hi
after sending second order check error from OrderSend function, for example add line:
Print("Error:",GetLastError());
maybe there is something wrong with parameters in OrderSend function.
regards
oromek
hi
after sending second order check error from OrderSend function, for example add line:
Print("Error:",GetLastError());
maybe there is something wrong with parameters in OrderSend function.
regards
oromek
You agree to website policy and terms of use
Hi,
I need help to my EA does the following:
When the different parameters are OK, I want that the EA places a pendent buy order, and then it must wait for 30 seconds to place other pendent sell order.
I already tryed to use the following command, but it doesn´t work
if (bla bla bla) // I know, this aren´t the right commands :)
{
OrderSend(Symbol(),OP_BUYSTOP,lotes, Top_Up, Slip, Top_Down, TP_Up, comenta, magico,0, White);
Sleep (30000);
OrderSend(Symbol(),OP_SELLSTOP,lotes, Top_Down, Slip, Top_Up, TP_Down, comenta, magico,0, White);
}
the result of this, is pendent buy order is placed, but the pendent sell order isn´t.
Any suggestions ???
Thanks