You should first check it with your broker and account. some accounts allow hedging while others do not. For instance, in Exness broker you should choose hedge option in the process of opening an account.