Hedging is legal, however not all brokers allow it. Also straightforward hedging cannot be carried out with brokers from the US. Hedging is a very common strategy where a trader will look to mitigate their risk. This is common if a trader is in a longer term trade and a potentially large new announcement is coming up. They could hedge their position until this announcement has passed to protect their downside.