MetaTrader 5 can record trades through either a hedging account or a netting account. The selected mode changes how trades in the same instrument appear and interact. It does not make a strategy safer or more profitable. Traders still face market risk, trading costs, execution risk and possible losses.
The account mode is normally set when the trading account is created. It is therefore important to understand the difference before placing orders, copying a strategy or running an automated trading program.
How netting accounts combine trades
A netting account maintains one net position per instrument. Additional trades in the same instrument change the size or direction of that single position.
If a trader buys one lot and then buys another half lot of the same instrument, MT5 shows one long position of 1.5 lots. The platform calculates a weighted average opening price for the combined position.
An order in the opposite direction reduces, closes or reverses the existing position. For example, selling 0.4 lots against a long position of 1.5 lots leaves a long position of 1.1 lots. Selling exactly 1.5 lots closes it. Selling two lots closes the long exposure and creates a short position of 0.5 lots.
This structure makes total exposure easy to read because only the final net amount remains open. However, individual entries no longer exist as separate positions. Their orders and deals remain available in account history, but position management applies to the combined position.
Weighted average price
Imagine a trader buys one lot at a hypothetical price of 100 and later buys two lots at 110. The weighted average is calculated as follows:
((1 x 100) + (2 x 110)) divided by 3 = 106.67
The netting account therefore shows one three lot long position with an average opening price of approximately 106.67. This calculation does not include spreads, commissions, swaps or slippage, which can affect the final result.
How hedging accounts keep positions separate
In trading, hedging means opening exposure intended to offset some or all of another exposure. In an MT5 hedging account, multiple positions in the same instrument can remain open separately, including long and short positions at the same time.
If a trader buys one lot, buys another half lot and sells 0.4 lots, the account can display three separate positions. Each position retains its own opening price, volume, stop loss, take profit and profit or loss figure.
The gross exposure in this example is 1.9 lots because all three positions are open. The net directional exposure is 1.1 lots long because 1.5 long lots minus 0.4 short lots equals 1.1 long lots.
Opening an opposite position does not automatically remove the original position in hedging mode. The trader may close each position individually or, when supported, use the Close By function to match opposite positions. Close By can reduce duplicated closing costs in some account arrangements, but its availability and treatment depend on account specifications.
Holding opposite positions is not the same as eliminating risk. The positions may temporarily offset price movement, yet spreads, commissions and overnight financing can continue to accumulate. Margin treatment can also vary according to the instrument and account conditions.
Practical differences in trade management
The account mode affects several routine actions:
- Adding exposure: Netting increases one combined position. Hedging creates another position unless an existing one is modified.
- Reducing exposure: An opposite order reduces the position in netting mode. In hedging mode, it may create a new opposite position.
- Stops and targets: Netting generally applies them to the combined position. Hedging permits separate exit levels for each position.
- Strategy records: Netting emphasizes total exposure. Hedging preserves separate entries, which may suit strategies that manage entries independently.
- Automated systems: Trading programs must be designed for the account mode. Instructions that close exposure correctly in one mode can produce an unintended opposite position in the other.
Pending orders are not the same as open positions. They remain instructions awaiting their activation conditions. Once triggered, the resulting trade is processed according to the account's position accounting mode.
Common mistakes to avoid
- Assuming that an opposite trade always closes an existing position.
- Looking only at net exposure while ignoring larger gross exposure and its trading costs.
- Expecting separate stop loss levels to remain attached after trades are combined in a netting account.
- Closing the wrong ticket when several hedged positions use the same instrument.
- Running an automated strategy without confirming which accounting mode it expects.
- Treating simultaneous long and short positions as protection from every loss.
- Ignoring margin, commission, spread and overnight financing rules for offsetting positions.
Practical check before trading
- Open the account specifications and confirm whether the mode is hedging or netting.
- On a demo account, place two small hypothetical trades in the same direction and observe whether MT5 combines them.
- Place a smaller opposite trade and check whether it reduces the position or creates a separate one.
- Review the displayed volume, average opening price, stop loss settings and gross exposure.
- Confirm that any automated strategy, trade copier or manual routine matches the account mode before risking funds.
Use the mode that fits the way positions need to be recorded and managed, then size every trade according to a predefined loss limit.
Educational content only, not investment advice. Leveraged trading can lose more than you expect.
