MT5 Hedging Netting: What It Means for Your Expert Advisor
The MT5 hedging netting distinction is one of the most misunderstood settings in automated trading, and it changes how every expert advisor you run behaves on a live account. Hedging accounts keep every trade separate, so you can hold a buy and a sell at the same time. Netting accounts merge all positions in one instrument into a single net position. The difference sounds administrative, but it decides whether your EA can lock positions, average entries, close individual trades and size correctly. Get it wrong, and a strategy that backtested cleanly can misbehave within a session.
MT5 hedging netting: the two account models explained
On a hedging account, every order you place creates its own ticket. Open 0.5 lots buy on EURUSD, then 0.3 lots sell, and you hold two positions with two entry prices, two stops and two margins. The buy can be in profit while the sell is in loss, and either can be closed independently. MT4 has always worked this way, and MT5 hedging accounts replicate the behaviour exactly.
On a netting account, MT5 merges everything on the same symbol into one position. That 0.5-lot buy and 0.3-lot sell become a single 0.2-lot net buy at a blended average price. The platform shows one ticket, one volume and one margin figure, with no way to split the position back into its parts. Which model you get is a broker decision: some brokers offer both, many offer one, and the regulatory framework set by the European Securities and Markets Authority and enforced by the Financial Conduct Authority applies regardless of the model your broker uses.
MT5 hedging netting: how expert advisors behave differently
The most visible difference is the lock. On a hedging account, a grid or averaging EA can hold a full-size buy and a matching sell at a different level, freezing floating profit and loss while the market decides. The lock is a structural tool: it pauses the trade without closing it. On a netting account the concept does not exist, because a buy and a sell of the same size cancel each other out into zero net volume. The EA would have to close the position outright, losing the spread and the ability to reopen at the locked level. Strategies that rely on locks are therefore written for hedging accounts.
Averaging behaves differently too. Martingale and grid systems add to losing positions; the netting engine blends the entry price automatically and one exit closes the whole net volume. On a hedging account the average sits across multiple tickets, so the EA must calculate its own weighted average and decide which tickets to close. That is why the same strategy logic produces different equity behaviour on the two models, and why platform choice is really two choices: the software and the account type.
Position management differs at code level as well. Hedging EAs select and close trades by ticket; netting EAs select by symbol and adjust volume. A trailing-stop EA written for one model will misread volume on the other. If you are migrating an existing strategy, retest it from scratch on the exact account type you will trade, then reinstall the EA after any platform change using the MT5 installation guide.
MT5 hedging netting: broker account choice and what to check
The broker decides what you get. Some MT5 brokers offer both account types, some offer hedging only, and many newer brokers — particularly those serving funded-account challenges — offer netting only. The account type is normally listed on the account specifications page, sometimes under “hedging” or “position accounting”. If it is not listed, ask before you deposit: an EA bought for the wrong model will not run correctly, and switching usually means a new account and a full reinstall.
Funded challenges deserve a special mention. Most prop-firm accounts run netting, and challenge rules commonly forbid hedging and locks. If your EA uses hedging logic, it may be disqualified before it trades. Review the challenge terms and the account type together.
MT5 hedging netting: position sizing implications
Position sizing maths changes with the model. On a netting account, adding to a position multiplies net volume: a 0.2-lot trade topped up with another 0.2 becomes 0.4 lots of single exposure. On a hedging account the same two tickets each consume their own margin, while equal buy and sell size hedges price risk — some brokers treat locked exposure differently.
For risk measurement, netting is simpler: one symbol, one exposure, one average price. Hedging requires summing tickets by direction to see true exposure. An EA that sizes in lots needs the account model baked into its logic; percentage sizing scales better, but the EA must still know whether volume means gross tickets or net position. Test position sizing in the Strategy Tester with the same account type your broker provides, because the tester honours that model.
MT5 hedging netting: common mistakes
The first mistake is assuming a backtest transfers. A strategy tested on a netting demo will not necessarily produce the same equity path, fills or drawdown on a hedging live account, because position merging and average-price logic change every entry and exit. The second is buying an EA without confirming the model it was built for; reputable vendors state it in the description. The third is using a hedge as a disguised stop-loss — locking a losing position often costs more in spread and margin than accepting the small loss.
The fourth mistake is ignoring the account model until something breaks; check it alongside broker and platform choice, because the three decisions interact. The MT4 vs MT5 comparison covers the wider platform differences, and the AlgoTM automation hub lists the account requirements of every EA we ship.
Frequently asked questions about MT5 hedging netting
What is the difference between hedging and netting in MT5?
On a hedging account every order stays a separate position with its own ticket, so you can hold a buy and a sell at once. On a netting account all positions in one instrument merge into a single net position with an averaged price. The broker chooses which model is available, and your expert advisor must be written to match it.
Can an expert advisor trade the same way on hedging and netting accounts?
No. Hedging EAs manage trades by ticket and can lock positions; netting EAs manage one position per symbol with averaged prices and net volume. A strategy written for one model will misread positions or volume on the other, so match the EA to the account type and retest.
Which MT5 account type suits a grid or martingale EA?
Hedging. Grid and martingale systems rely on multiple open tickets, partial closes and locks, which only exist on hedging accounts. Netting accounts cancel opposing volume and blend entries, which changes the whole trade sequence. Most funded-account challenges, however, run netting and restrict hedging, so read the challenge rules before choosing.
How does the account model affect margin and position sizing?
On netting, added volume becomes a single larger net position, so margin grows with net exposure. On hedging, each ticket has its own margin, and equal buy and sell volume hedges price risk. Percentage sizing works on both, but the EA must know whether volume means gross tickets or net position.
Automate on the right foundation. Check the account type required by each AlgoTM expert advisor on the automation hub, then follow the MT5 installation guide to get started.
Risk disclosure: Trading foreign exchange, commodities, CFDs and cryptocurrencies carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. AlgoTM provides trading tools and technology only and does not provide investment advice, portfolio management or guaranteed returns.