Yes to the above highlighted. Your long trade will close immediately and at the same time a short position will open. I suggest you try experiment on your Demo acct platform with different units.