Hedging EAs for MT5: how two-sided strategies work

6 minute read

A hedging Expert Advisor holds positions on both sides of a market at the same time, rather than picking a direction. The aim is a flatter equity curve through volatile conditions, not a larger win on any one trade.

It is a legitimate approach with real costs, and it needs a specific kind of account. Both are worth understanding before you buy one.

Hedging and netting accounts

MetaTrader 5 accounts come in two kinds. On a netting account, buying and then selling the same instrument nets off into a single position — the second order reduces or closes the first. On a hedging account, both positions exist side by side.

A hedging Expert Advisor cannot run on a netting account. There is nothing to configure around it: the account simply will not hold both sides.

How to check which you have

In MetaTrader 5, the account type is shown in the terminal under account properties, and your broker states it when the account is opened. Some brokers offer both and you choose at signup; some offer only netting.

When you connect an account to TradeFx we detect this automatically and tell you before anything starts, rather than letting a hedging strategy fail quietly on a netting account.

What the strategy is trying to do

Holding both sides means a sharp move against one leg is cushioned by a gain on the other. The position as a whole moves less than either side alone.

The strategy then manages the pair — adjusting as price moves, and closing both legs when the combined position reaches its target. The goal is to survive volatility that would stop out a directional position, and to close on the net result.

The costs nobody mentions

  • You pay the spread on both legs, not one.
  • Margin is reserved for both positions, so the same account supports fewer trades.
  • Swap is charged on both sides overnight, and the two rarely cancel out — on many pairs the net carry is negative.
  • A hedged pair can sit open far longer than a directional trade, so those carrying costs accumulate.

None of this makes hedging a bad approach. It does mean a hedging strategy has to clear a higher bar before it is profitable, and any description that omits the carrying cost is not describing the whole trade.

When hedging is the wrong tool

  • You have a strong directional view — hedging deliberately gives up most of the upside.
  • Your account is tight on margin; two legs need headroom.
  • You are trading instruments with a heavy negative carry.
  • You want a busy trade log; hedged pairs are often held for a long time.

Hedging is not risk-free, and anyone saying so is selling

Holding both sides reduces how violently a position moves against you. It does not remove the possibility of loss, and the carrying costs mean a hedged pair that goes nowhere still costs money. Any marketing that presents hedging as a way to trade without risk is describing something that does not exist.

Questions

Is hedging allowed on all MT5 accounts?
No. It needs an account the broker has set up in hedging mode. Netting accounts close one side against the other and cannot hold both.
Is hedging legal?
It depends on your jurisdiction and your broker. Some regulators restrict it for retail accounts. Check with your broker, and check the rules that apply where you live, before buying a hedging strategy.
Does hedging guarantee I cannot lose?
No. It reduces how sharply the position moves against you and it costs money to hold. Both legs pay spread, both reserve margin, and both accrue swap.
Why is it spelled Heddge?
That is the product name. The strategy is ordinary hedging.