Keep getting -1 on order orderSend function

 

Hi all,

When I make 2 (ordersend) after eatch other, the second order return -1

I put a while around the second order, but stil, many -1 results,

but as soon as I recompile the order get sendt, and no problem!

while (ticket2 < 0){
ticket2=OrderSend(Symbol(),OP_SELL,0.05,Bid,5,Ask+25000*Point,Ask-10000*Point,"My order #5",16384,0,Red);
Sleep(3000);
Print("Trade ",ticket2);

}

Thanks in advance

Crunchy

 
what does the log say?
Reason: