error 4108

 

I don't understand this:

A pending order is opened with ticket 5 but it can't be closed even with the right ticket nr. it shows error 4108 what means invalid ticket.

Later the order (here order #5) is filled & modified. That happens all the time in the tester with that ea.

Can someone explain me that?

Below what the journal shows


                        2013.11.05 10:00  Dax1 DAX30,M15: open #5 buy stop 0.10 DAX30 at 9034.0 ok

2    14:50:32    2013.11.05 10:00  Dax1 DAX30,M15: open #6 sell stop 0.10 DAX30 at 9024.0 ok

2    14:50:32    2013.11.05 10:17  Tester: order #6, sell 0.10 DAX30 is opened at 9024.0
2    14:50:32    2013.11.05 10:17  Dax1 DAX30,M15: modify #6 sell 0.10 DAX30 at 9024.0 sl: 9046.0 tp: 8924.0 ok
3    14:50:32    2013.11.05 15:00  Dax1 DAX30,M15: pending order #5 cannot be closed
3    14:50:32    2013.11.05 15:00  Dax1 DAX30,M15: OrderClose error 4108
2    14:50:32    2013.11.06 08:00  Tester: order #5, buy 0.10 DAX30 is opened at 9034.0
2    14:50:32    2013.11.06 08:00  Dax1 DAX30,M15: modify #5 buy 0.10 DAX30 at 9034.0 sl: 9012.0 tp: 9134.0 ok
0    14:50:32   ...
 
Show the related code. A pending order cannot be closed, it can be deleted.
 
yep, that's it - of course! ...  cannot be closed, it can only be deleted!! Thanxx!!!
Reason: