In fact, futures trading software has two operations for this situation:
1. For the same contract, if you choose to open two orders separately, then both orders and 1 empty orders will be saved. At this time, you have three positions.
2. For the same contract, if you choose to open more than 2 lots, the software will automatically close your 1 empty order and then open 1 lot. At this point, you only have 1 hand.
Both of these operations can be implemented in your software, depending on how you choose. Different software has different methods. You can ask the futures customer service for instructions.
Actually:
If you are a full-time short-term speculator, the direction is everything, and you don't need to keep it long and short, which will disturb your thinking.
If you are a long-term investor:
When your unilateral position is profitable-at the same time, you think that the general trend may continue, but there will be a callback in the short term, then you can choose the reverse position of the same position to lock in the profit and avoid shocks. When the callback is over, or it is confirmed that the callback will not happen, you can close the position and reverse the position to continue to expand the profit of the original position.
When your unilateral position loses money-but you firmly believe that you have not misread the general trend, then you can choose the reverse position of the same position to lock the loss and prevent being washed. When the megatrend advances as scheduled, your reverse position will be closed and unlocked in time, waiting for future profits to make up for temporary losses and even expand the results.
In case you misjudge the general trend, it doesn't matter, because of the existence of reverse opening, your profit or loss has been locked, and you have to close your position and wait for the reverse trend to continue to make up for the loss or expand the result.