Deleting multiple pending orders - page 2

 
pro_:
Ok, Gumrai fixed the return(0) problem you had. I would also remove the second break. Because now it will stop at the first error. If the goal is to remove ALL pending orders, you would probably want it to continue removing the other orders regardless of the error it got on one of them, and not simply stop, right? As for the rest - don't see anything contradicting the intended logic.

Thanks. I did that and now its working right
 
Siladeh:

Thanks. I did that and now its working right


no it isn't

It can be any Symbol you are deleting

Also it isn't selecting the right MagicNumber

Reason: