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 are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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