Prevent Hedging: How MimikTrader Stops Opposite Positions
Automatic protection against holding opposing long and short positions that would violate prop firm rules.
5 min read
Hedging, in the context of futures trading, means holding a long position and a short position in the same instrument at the same time. While this is technically possible on some brokers, most prop firms explicitly prohibit it. MimikTrader includes a hedging prevention feature that automatically blocks any trade that would flip a follower's position from one side to the other.
What Is Hedging and Why Do Prop Firms Forbid It?
Hedging occurs when a trader holds both a long and short position simultaneously. For example, being long 2 ES contracts and short 1 ES contract at the same time. While some retail brokers allow this, prop firms prohibit it for several reasons:
- It obscures the real position risk. A hedged position can mask losses and make it unclear what the trader's actual market exposure is.
- It increases commission costs without adding value. Holding opposing positions costs double the commissions compared to simply reducing the net position.
- Prop firm risk engines calculate drawdown on net position. Hedged positions can create situations where the drawdown calculation does not match the trader's actual P&L.
- Most evaluation rules explicitly state that hedging is a violation. Accounts caught hedging may be terminated immediately.
How the preventHedging Toggle Works
The preventHedging setting is a toggle on each copy group, and it is enabled by default. When enabled, MimikTrader performs an additional check during risk evaluation for every incoming trade:
- MimikTrader calculates what the follower's new position would be after the trade is applied.
- If the current position is positive (long) and the new position would be negative (short), or vice versa, the trade is blocked.
- The rejection reason logged is: "Hedging prevention: order would flip position to opposite side."
Importantly, this check only blocks trades that would flip the position across zero. It does not block trades that reduce the position toward zero. For example, if the follower is long 3 contracts and the incoming trade is a Sell for 2 contracts, the new position would be long 1 — still positive, so it is allowed. But if the Sell were for 5 contracts, the new position would be short 2, which crosses zero and would be blocked.
What Happens When a Trade Is Blocked
When hedging prevention blocks a trade, the following occurs:
- The follower order is rejected with the reason: "Hedging prevention: order would flip position to opposite side."
- A REJECTED entry is written to the order log with the rejection reason.
- A WARNING-level activity log entry is created so you can see the blocked trade in your dashboard.
- Other followers in the same group are not affected. Each follower's position is evaluated independently.
When to Enable Hedging Prevention
You should keep hedging prevention enabled (the default) when:
- Your follower accounts are prop firm accounts that prohibit hedging.
- You want to ensure clean, unidirectional positions on each account.
- The leader and follower are trading the same instruments and you expect positions to be synchronized.
When to Disable Hedging Prevention
There are rare scenarios where you might disable hedging prevention:
- The follower is a personal retail account on a broker that allows hedging, and you intentionally want to hold opposing positions.
- Position synchronization has drifted between the leader and a follower, and you need to allow a position-flipping trade to re-synchronize. After re-sync, re-enable the toggle.
Hedging Prevention vs. Close Trades
It is important to understand the distinction between hedging prevention and normal close behavior. Closing trades (where the leader reduces or flattens their position) bypass hedging prevention entirely because they are recognized as position-reducing operations before the hedging check runs. The hedging check only applies to trades that are classified as non-reducing — specifically, trades where the follower is not already positioned on the opposite side.
In practice, the sequence for a leader reversal (long to short) looks like this: the leader first closes their long position (follower also closes), then the leader opens a new short position (follower opens a new short). The hedging prevention allows this because each step is evaluated independently — the close happens first, bringing the follower to flat, and then the new trade opens from flat.