Key Takeaways
- Forex hedging offsets one position with another. A direct hedge holds a buy and a sell on the same pair, while correlated pair and options hedges reduce exposure in more flexible ways.
- A direct hedge freezes a loss; it does not remove it. In our example, a $500 loss became about $560 after 10 nights of hedging once spread and swaps on both sides were added.
- Your account type decides whether you can hedge. MT5 hedging accounts allow opposite positions, netting accounts do not, and US regulated brokers must follow the first in, first out rule.
- Be careful with hedging EAs and prop firm rules. Hedging recovery bots can build large hidden exposure, and many prop firms restrict hedging, so check limits and rules before trading.
Forex hedging means opening a second position that gains when your first position loses, so that a price move in either direction has less effect on your account. The simplest version is a direct hedge: holding a buy and a sell of the same size on the same pair at the same time, which locks your profit or loss where it is.
Hedging reduces risk, but it is not free and it does not turn a losing trade into a winning one. A direct hedge usually costs about the same as closing the trade, plus extra spread and swap. This guide explains the main types of forex hedging, a worked example with the real costs, the account and regulatory rules that decide whether you can hedge at all, and what hedging means for trading bots.
Types of Forex Hedging
| Type | How it works | What it protects | Main drawback |
|---|---|---|---|
| Direct hedge | Buy and sell the same pair, same size, at the same time | Locks the current profit or loss completely | Pays spread twice and swap on both sides, with no upside |
| Partial hedge | Open an opposite position smaller than the original | Reduces, but does not remove, exposure | Still exposed to the unhedged part |
| Correlated pair hedge | Trade a second pair that usually moves the opposite way, such as EUR/USD against USD/CHF | Reduces exposure to one currency, often the US dollar | Correlations change, so the hedge can fail when it matters |
| Options hedge | Buy a put or call option on the pair | Limits loss beyond a set price, while keeping the upside | Costs a premium, and few retail MT4 or MT5 brokers offer options |
| Business hedge | Companies use forward contracts to fix a future exchange rate | Protects real cash flows, such as an import bill | Not a trading strategy; it gives up any favorable rate move |
Direct hedging
If you are long 1 lot of EUR/USD and open a short of 1 lot on EUR/USD, every pip the price moves gains on one position and loses on the other. Your account balance stops changing with price, apart from costs. This is what most retail traders mean by hedging, and it is only possible on accounts that allow two opposite positions on the same symbol.
Correlated pair hedging
Some pairs tend to move together, such as EUR/USD and GBP/USD, and some tend to move opposite each other, such as EUR/USD and USD/CHF. Traders use this to offset part of their exposure. For example, a trader long EUR/USD who is worried about a stronger dollar might buy USD/CHF, which usually rises when the dollar strengthens.
The weakness is that correlation is a tendency, not a rule. Around central bank decisions or risk events, normally linked pairs can move independently, and both sides of a correlated hedge can lose at once. Pip values also differ between pairs, so equal lot sizes do not give an equal hedge.
Options hedging
Buying an option gives you the right, but not the obligation, to trade at a set price. A trader long EUR/USD can buy a put option to cap the loss below a chosen level while keeping the gains if price rises. The cost is the option premium, paid whether or not the option is used.
Worked Example: The Real Cost of a Direct Hedge
Say you buy 1 lot of EUR/USD at 1.0850. Price falls to 1.0800, so you are down 50 pips, or $500. You are worried it will fall further, but you do not want to accept the loss, so you hedge by selling 1 lot at 1.0800. Assume a 1 pip spread and, as a hypothetical example, a swap of −$7 a night on the long and +$2 on the short.
| Close the trade | Hold the direct hedge | |
|---|---|---|
| Loss locked in | $500 | $500 |
| Extra spread to open the hedge | $0 | About $10 |
| Swap per night | $0 | About −$5 (−$7 + $2) |
| Cost after 10 nights | $500 | About $560 |
| Exposure to further moves | None | None, while both sides are open |
The hedge did not save the $500. It froze the loss and added costs on top. The only way the hedge “works” is if you later close one side at a better moment, and as soon as you close one side, you are fully exposed to the market again. That makes the decision you avoided at 1.0800, accepting the loss or not, simply arrive later.
This is why many experienced traders treat direct hedging as a delay, not a strategy. If you would hedge a trade because you no longer trust it, closing it is usually cheaper. Setting a stop loss before entry handles the same problem without the extra costs. Our guide to setting stop loss and take profit in MT4 covers that approach.
When hedging can make sense
- Around a single event. A swing trader holding a position for weeks may partly hedge through a major release, then remove the hedge afterwards, accepting the costs as insurance.
- When you cannot close one position for a reason outside the trade. For example, a long term position held for a business or investment reason.
- With options. An options hedge caps the downside while leaving the upside open, which a direct hedge cannot do.
- For real currency exposure. A business or investor holding foreign currency cash flows hedges to protect their value, not to trade.
Using Close By to save a spread
On hedging accounts, MT4 and MT5 offer a Close By option, which closes two opposite positions on the same symbol against each other. Because neither side is closed at the market price, you avoid paying the spread a second time when you exit a direct hedge. Right click one of the positions in the Trade tab, choose Close By or Close By Opposite Position, and select the other one.
Can You Hedge on Your Account? Platforms and Rules
Whether you can open opposite positions on the same pair depends on your platform, your account type and your broker’s regulator.
| Situation | Direct hedging allowed? |
|---|---|
| MT4 account at most non US brokers | Yes |
| MT5 hedging account | Yes, multiple positions per symbol, including opposite ones |
| MT5 netting account | No, an opposite trade reduces or reverses your existing position |
| US regulated forex broker | No, positions must be closed first in, first out |
| Prop firm account | Depends on the firm’s rules |
Hedging and netting accounts in MT5
MT5 supports two ways of recording positions, and your broker sets which one your account uses. MetaQuotes’ guide to position accounting in MetaTrader 5 explains that a netting account holds only one position per symbol, while a hedging account can hold several, including opposite ones. You can see which type you have in the MT5 window title or in the Journal when you log in.
The US FIFO rule
US regulated forex brokers must follow National Futures Association Compliance Rule 2-43(b), in force since 2009. It requires positions in the same pair to be closed on a first in, first out basis, which in practice prohibits holding a buy and a sell on the same pair in the same account.
Margin on hedged positions
Many brokers charge reduced margin on a fully hedged position, shown as Hedged margin in the symbol’s Specification. That can make hedging look free, but the swap and spread costs still apply. And if the account reaches its stop out level, the broker may close one side of the hedge, leaving the other fully exposed at the worst moment.
Hedging and prop firms
Hedging across two accounts can be used to game a challenge, since one account is almost sure to pass, so many prop firms now ban hedging across accounts or with other traders, and some restrict opposite positions entirely. Check your firm’s rules before using any hedging approach. Our guide to prop firm EA rules covers what the major firms allow.
Hedging and Trading Bots
Some Expert Advisors use hedging as part of their logic, opening opposite positions when a trade goes against them and trying to recover the loss by closing the legs separately later. These hedging recovery systems can show long winning streaks, then take large losses when price trends strongly, because the locked loss grows with every added position.
If an EA hedges, check three things before using it:
- Does it have a total loss limit? A maximum drawdown that closes every position caps the damage.
- How large does exposure get? Count the open lots during the worst period of its backtest.
- Do the backtest costs include swaps on both sides? Hedged positions pay swap twice, which some backtests understate.
Many EAs, including ones that do not hedge on purpose, still need a hedging account so they can hold more than one position per symbol. XAUBOT, our own platform, is one of them: its bots require a hedging account, not a netting or FIFO account, so check your account type with your broker first. You can read the full requirements on our forex trading bot page and test any setup free on a demo account.
Forex Hedging Questions
Is forex hedging legal?
Yes, in most countries. US regulated brokers do not allow direct hedging in the same account under the FIFO rule, and some prop firms restrict it in their own rules.
Is hedging profitable?
Hedging is a risk tool, not a profit strategy. A direct hedge freezes your profit or loss and adds costs. Profits only come from the moves you are exposed to, which hedging reduces.
Does hedging prevent a margin call?
Not reliably. Hedged margin can reduce the margin you need, but swaps keep adding to the loss, and if equity falls to the stop out level, the broker may close one side and leave you fully exposed.
How do I hedge in MT5?
You need a hedging account. Open a position, then open the opposite position on the same symbol. On a netting account, the second order will reduce or close your first position instead.
What is the difference between hedging and a stop loss?
A stop loss closes the trade at a set price and ends your exposure. A direct hedge keeps the trade open, freezes the result and adds costs, and you still have to decide later when to remove it.
Final Word
Forex hedging can reduce exposure, but a direct hedge on the same pair rarely does anything that closing the trade would not do more cheaply. Correlated and options hedges offer more flexibility, with their own risks. Before hedging, check your account type, your regulator’s rules and, for prop firms, the firm’s conditions.
Trading forex with leverage carries a high risk of loss. Only trade with money you can afford to lose.

