Collections / post 13

Free hedging EAs

The hedging collection lists every robot with "hedge" in the name. Hedging sounds like safety, and hedge robots sell themselves on never taking a loss. In practice a hedge converts a loss into two open positions and a swap bill. This post explains what these EAs do and what to check before running one.

5 min readUpdated 2026-09-07MT4 & MT5

What a hedging EA does

When a trade goes against it, the EA opens the opposite direction, often in a larger size, so that the combined position stops losing. The plan is to close the pair later at a profit when price moves decisively one way. Variants include locking (equal sizes), hedge-and-recover (larger opposite size), and zone recovery, which keeps adding alternating trades inside a price band until the band breaks.

Why a hedge is not insurance

  • A locked position is a realised loss you have not booked. Two opposite trades of equal size have a fixed combined loss equal to the distance between them plus spread. Nothing about the market can change that number; only closing one side and being right about direction can.
  • Swap runs on both legs. Holding buy and sell overnight pays two swaps. On many pairs both are negative. A locked hedge held for weeks quietly bleeds.
  • Recovery hedges are martingales in disguise. Each larger opposite trade is the same bet as a martingale step: the next move will be big enough. Zone recovery in a range that keeps whipsawing produces enormous exposure.

The MT5 account trap

MetaTrader 5 has two account types. On a netting account a buy and a sell on the same symbol offset into one position, so a hedge EA cannot hedge at all: it simply closes or reduces the original trade and its logic breaks. On a hedging account both positions exist. Check Account type in the terminal before installing anything from this collection. MT4 accounts always allow hedging, unless the broker is in a jurisdiction that bans it.

Evaluating a hedge robot honestly

  1. Look at equity, not balance. Locked positions hide losses from the balance line indefinitely.
  2. Count the maximum number of simultaneous open trades in a tester run. That is the exposure.
  3. Add swap to the test. MT5 does this; MT4 needs you to check the report.
  4. Include a long range period and a long trend period. Hedge robots usually die in one of the two.

Where hedging is genuinely useful

Partial hedges around news, or hedging a swing position with a short-term counter-trade, are legitimate. What they have in common is a plan to close the hedge, not a hope. If you want to try a simple version, the EA Builder can express "if floating loss exceeds X, open the opposite direction, close both at combined profit Y" in six blocks, with every number as an input. Related: grid EAs, which share the same drawdown behaviour.

Browse free hedging EAs All posts

Frequently asked questions

Do hedging EAs work on MT5?

Only on a hedging-type account. On a netting account opposite trades merge into one position and the EA cannot function.

Is hedging illegal?

It is banned for retail accounts by regulators in a few countries, including the United States, where brokers must use netting. Elsewhere it is normal.

Why does my hedge EA show profit while equity keeps falling?

Balance counts closed trades; the locked hedge and its swaps are in equity. The equity line is the real result.

Is zone recovery safe?

It is a martingale variant. It works while price breaks out of the zone before exposure gets too large, and it fails when price whipsaws inside the zone. Size the account for the failure case.

Trading forex, CFDs and futures carries a high level of risk and past performance is no guarantee of future results. Files listed on this site are shared as posted and are not tested, verified or recommended. Test on a demo account first.