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 ?

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
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