Maybe this will help:
Once an order is closed (i.e. the order you used to get into a position, say buy 100 IBM), you cannot reuse that order ID. You can only use that orderID to modify THAT order.
To send a NEW order to change that position (SELL 100 IBM), you must have a new, unique...