Problem with putting SL and TP!

 
Hi, everyone! I have an EA wich works good for me, but sometimes It don't put Sl and TP. I mean: the ea works great for 7-8 trades and then when it open new trade it don't put SL and Tp, and I must to put it manual. Then it start works again good, but after 3-4 trades again do not put TP and Sl. What can be the problem? Can anybody help me
 
Ask your Broker why he won't quote you prices . . .
 

Check your return codes and print WHY

if (!OrderModify(...)
   Alert("OrderModify failed: ", GetLastError());
Reason: