What's the best way to close previous positions when I have new order position sizes calculated by account size? For example, if I enter a position for 1 lot in EURUSD, and (purely hypothetically) that trade doubles the size of the account. My next order position size would be for 2 lots. That makes it difficult to close the first position if all I'm going to do is do an opposite position because the order quantity would change. The help I've received from the api support is to request positions and then do an opposite order based on what comes back. I've never seen that put into code.