Why pending order delete it self
hasle1975:
Probably because your expiry was wrong ? How did you set it ?
I add pending orders. Add two hours for expire. After it add the pending it delete it again after few seconds. Nothing in the code close any kind of order. Any idea why?
In journal it just says pending order #... was deleted
Alain Verleyen:
Probably because your expiry was wrong ? How did you set it ?
No. I also tried without any.
Probably because your expiry was wrong ? How did you set it ?
hasle1975:
No. I also tried without any.
TimeClose = TimeCurrent() + 60* 60 * 1;
No. I also tried without any.
Alain Verleyen:
Probably because your expiry was wrong ? How did you set it ?
ticket=OrderSend(Symbol(),OP_BUYSTOP,Lotsize,PriceOpen,3,SL,LIMIT,"comment",5,TimeClose,clrGreen);
Probably because your expiry was wrong ? How did you set it ?
I add pending orders. Add two hours for expire. After it add the pending it delete it again after few seconds. Nothing in the code close any kind of order. Any idea why?
In journal it just says pending order #... was deleted