Any reason why this doesn't work? - page 2

 
jjc wrote >>

Channelling CB... if you have two orders, A and B, then they start off in slots 0 and 1. Loop variable j starts at 0. Order A in slot 0 is selected and closed, and moves to the trade history. Order B thus moves from slot 1 to slot 0 on the open-order list. But j is incremented from zero to one, and therefore B is left open. That's why CB keeps, er, shouting at people to decrement rather than increment.

Ah ok, I see what you mean. I do this naturally without thinking about it and forgot to even look at his loop lol. Good catch!

.

Jon

Reason: