When a position is already open, use position-aware order tools rather than submitting unrelated exit orders without checking quantity and side.
Smart Position Order
Smart Position Order can expose stop-loss price, stop-loss offsets, trailing-stop behavior, and take-profit controls. The strategy can reference the current position so exit quantities stay aligned with the position when configured correctly.
See also: Order strategies complete reference.