One-Way Mode and Hedge Mode define how an exchange handles long and short positions on the same trading pair. Choosing the correct mode is critical for MagicTradeBot to place, manage, and close trades correctly.
Incorrect position mode configuration is one of the most common causes of order failures.
One-Way Mode (Single Position Mode)
How it works
In One-Way Mode, you can have only one net position per symbol.
- A symbol can be either Long or Short, but not both
- Opening a trade in the opposite direction reduces or closes the existing position
- The exchange maintains one combined position per symbol
Example
You are trading BTCUSDT:
- Open Long 1 BTC
Place a Short 0.5 BTC → Result:
- Net position becomes Long 0.5 BTC
You cannot hold Long and Short at the same time.
Exchanges using One-Way Mode in MagicTradeBot
- Bybit (currently supported in One-Way Mode only)
Why One-Way Mode matters
If Hedge Mode is enabled on Bybit:
- Orders may be rejected
- SL/TP may fail to attach
- PnL tracking can become incorrect
Hedge Mode (Dual Position Mode)
How it works
In Hedge Mode, you can hold Long and Short positions simultaneously on the same symbol.
- Long and Short positions are fully independent
- Each position has its own size, leverage, SL, and TP
Ideal for:
- Advanced strategies
- Signal-based trading
- Multi-directional logic
Example
You are trading ETHUSDT:
- Open Long 1 ETH
- Open Short 1 ETH
Result:
- Two independent positions
- Each with separate risk management
Exchanges using Hedge Mode in MagicTradeBot
- Binance
- OKX
- Bitget
Hedge Mode is required on these exchanges.
Why MagicTradeBot prefers Hedge Mode
MagicTradeBot’s internal engine is built around:
- Independent trade lifecycles
- DCA scaling per position
- Smart SL/TP and emergency closes
- Multi-signal trade execution
Hedge Mode ensures:
- Accurate position isolation
- Clean trade entry/exit logic
- Reliable PnL calculation
What happens if the wrong mode is used?
If your exchange mode does not match MagicTradeBot’s requirement:
- ❌ Orders may be rejected
- ❌ Trades may close unexpectedly
- ❌ SL/TP placement may fail
- ❌ Trade direction may be incorrect
- ❌ PnL reporting may be inaccurate
To prevent this, MagicTradeBot validates position mode on startup and may stop execution if misconfigured.
How to set One-Way or Hedge Mode on exchanges
Bybit (One-Way Mode ONLY)
- Log in to Bybit
- Go to Derivatives Trading
- Open Position Mode Settings
- Select One-Way Mode
- Confirm changes
⚠️ Hedge Mode is not supported for Bybit in MagicTradeBot.
Binance (Hedge Mode REQUIRED)
- Log in to Binance
- Go to Futures Trading
- Open Preferences / Position Mode
- Select Hedge Mode
- Confirm and save
OKX (Hedge Mode REQUIRED)
- Log in to OKX
- Navigate to Derivatives / Futures
- Open Account Settings
- Set Position Mode = Hedge Mode
- Save changes
Bitget (Hedge Mode REQUIRED)
- Log in to Bitget
- Go to Futures Trading
- Open Position Mode Settings
- Enable Hedge Mode
- Confirm changes
Important notes before switching modes
Changing position mode may require:
- Closing all open positions
- Cancelling open orders
- Some exchanges apply mode changes per account, not per symbol
- Always change position mode before starting MagicTradeBot
Key takeaway
| Feature | One-Way Mode | Hedge Mode |
|---|---|---|
| Long & Short simultaneously | ❌ No | ✅ Yes |
| Independent SL/TP | ❌ No | ✅ Yes |
| Advanced strategy support | ❌ Limited | ✅ Full |
| MagicTradeBot preference | Bybit only | Recommended |
Final recommendation
- ✅ Bybit → One-Way Mode
- ✅ Binance / OKX / Bitget → Hedge Mode
- 🔒 Always verify position mode before live trading