One is to transfer your position to others. For example, you hold a long position and now you want to make a profit, but now others are still watching the market, so you transfer your long position to others at the market price. The position of this bull has not disappeared, but has been handed over to others, just like delivering a parcel, so the position remains unchanged;
Another situation is that bulls and bears cancel each other out. For example, you have a long position and you want to sell it and make a profit. At the same time, there is a trader in the market who wants to buy short positions. So, at the market price, you sell him and buy him, both positions disappear, and then the positions fall.