When you click Close Trade, just the chosen sum will close, and the rest will stay as an open exchange for your Portfolio. The leftover position's Stop Loss and Take Profit boundaries will change naturally to match the new exchange size.