Home > Blog > MT5 Orders and Positions: Avoid Netting Account Mishaps

MT5Account typeEA operation

MT5 Orders and Positions: Avoid Netting Account Mishaps

Published: 2026-11-02Read time: about 3 min
⏱ This article reflects information as of its publish date. EA performance figures (PF, DD, annual return) change with live trading and re-validation — check the latest on the EA pages. See the latest EA results →

Before you run an EA, check whether your account is netting or hedging. The same EA can treat an opposite trade as a "new position" or as a "close" depending on the account type. If the EA's assumptions don't match the account, you can end up with unintended profits and losses even when the logic itself is sound.

We stress this check because the behavior can change without any error message. This article first sorts out the terminology, then walks through the mishaps that tend to occur and the steps to verify your setup.

Orders, Deals and Positions Are Different Things

MT5 records trading in three stages:

  • Order: An instruction such as "I want to buy" or "I want to sell." Pending limit and stop orders do not create exposure until they are filled.
  • Deal: The record that an order was executed. One order can be split into multiple deals.
  • Position: The exposure you currently hold as a result of deals.

"An order is still pending" and "I hold a position" are separate states. For example, removing an EA from the chart does not necessarily cancel its pending orders or close its positions in MT5. After stopping an EA, check the Trade tab to make sure neither remains.

Recommended Broker Comparison →

🎁 Download Free EA

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.

* Privacy strictly protected. You can unsubscribe at any time.

What Changes Between Netting and Hedging

Netting merges everything into a single position per symbol. Hedging lets you hold separate positions for each deal, even on the same symbol.

ActionNetting accountHedging account
Buy 0.1 lot while holding buy 0.1 lotMerged into one buy 0.2 lot positionTwo buy 0.1 lot positions
Sell 0.1 lot while holding buy 0.1 lotOffset, no position leftTwo positions, one buy and one sell (hedged)
Sell 0.2 lot while holding buy 0.1 lotFlips to sell 0.1 lotTwo positions: buy 0.1 lot and sell 0.2 lot
Stop loss / take profit per positionOnly one set per symbolCan be set for each position

The key point is the second row. On a netting account, an order you meant as a hedge works as an order that closes the existing position.

Mishaps on Accounts That Can't Hedge

1. A "hedge" order becomes a close

If an EA places an opposite trade to limit floating losses, on a netting account the exposure simply disappears. If the EA assumes both sides are still open and moves on to its next step, its position management drifts away from reality. If it then places yet another opposite order, you may even end up with a new position in an unintended direction.

2. Averaging-down and grid management breaks

A design that takes profit on multiple positions individually doesn't work on a netting account, because everything collapses into one average price. Depending on the additional orders, your stop loss and take profit levels can also shift. For an EA that caps exposure by position count, it can count 1 no matter how many times it adds, so the limit may never trigger.

3. Multiple EAs on the same symbol interfere with each other

This is the easiest one to overlook. For example, MEGAMAX DONCHIAN and DONCHIAN ENGINE both run on USDJPY H1. If you run them together on a netting account, your USDJPY exposure is merged into one. Depending on how they're built, one EA's close may also close the other's share, or one may see "position held" and block new entries.

Each EA's measured figures are meant to be read on their own. They do not represent results when the EAs are combined on the same symbol.

The reverse mishap also exists

If you run an EA built for netting on a hedging account, an opposite order meant to close a position can remain as a new position instead. As hedged positions pile up, margin, swap and spread costs keep accumulating. A hedging account is not always the safer choice.

Pre-Launch Checklist

  1. Check your account type: The terminal's title bar or the login history often shows "Hedge," "hedging" or similar. Wording can differ by version, so if you can't tell, ask your broker.
  2. Check which accounts the EA supports: Look in the documentation or parameters for an account type requirement. See also our EA setup guide.
  3. Test on a demo account: Open a demo account of the same type as your live one and run the EA at minimum lot size. Check that the number of rows in the Trade tab matches what you expect.
  4. Match the account type used in testing: When reading tester results, confirm the testing environment uses the same account type as live trading.
  5. Identify same-symbol overlaps: If several EAs on one account trade the same symbol, consider avoiding running them together on a netting account.
  6. Read your broker's terms: The account type is fixed when you open the account, and changing it generally requires a separate account. Handling varies by broker, so use the forex broker comparison as a starting point and confirm the official terms.

Limits of This Check

First, here is what we can't claim.

  • This article describes the general mechanics. It is not the result of comparing a specific EA on both account types. You can only know the real behavior by checking that EA's implementation.
  • With an EA whose code you can't read, there are limits to isolating the cause. If no add-on or reversal happens during a short demo period, the problem won't show up.
  • Even a "hedging account" isn't a guarantee of safety. Regulations or broker terms may restrict hedging or the order in which positions are closed. Some conditions can't be seen from the displayed account type alone.
  • Even with matching account types, performance differences from spreads and fills remain. This is not a guarantee of backtest-equivalent results.

Netting itself isn't bad, either. For an EA that simply trades one position per symbol, it has the advantage of making your exposure easy to grasp. What matters is not which is better, but whether the EA's design fits the account.

Summary

  • An order is an instruction, a deal is the record of execution, and a position is your current exposure.
  • Netting means one position per symbol; hedging allows multiple positions on the same symbol.
  • On a netting account, an opposite order does not create a hedge; it works as a close or a reversal.
  • When running multiple EAs on the same symbol, watch out for exposure being merged.
  • Even on a hedging account, if the EA's closing assumptions differ, unintended hedged positions can remain.
  • Before going live, test the behavior on a demo account of the same type at minimum lot size.

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.

* Privacy strictly protected. You can unsubscribe at any time.

Have a question about EAs or FX?

You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.

Ask on Nattzy ↗

Comments & questions