Hedging in forex means opening a position to offset the risk of another position or of a real currency exposure. A hedge can reduce one specific risk. It doesn't remove risk altogether, it costs money in spreads, swaps or option premiums, and it gives up gains on the same move it protects against. It isn't a stronger form of diversification either: the two do different jobs, and neither is better in general.
Below we cover what a hedge does, how it differs from diversification, the three common types with worked examples, what they cost, when hedging makes sense, and how the rules differ by country. If you are new to this, the first two sections are enough. The later ones are for traders who already hold several positions or run Expert Advisors (EAs). All examples are our own calculations, without commissions.
What Is Hedging in Forex?
A hedge works like insurance: you accept a small known cost to limit a larger unknown one. The clearest case isn't a trade at all, but a real exposure.
Say you are paid €5,000 a month and spend dollars. At EUR/USD 1.08500 that is $5,425. If the euro falls, your salary buys less. To offset this, you sell 0.05 lot of EUR/USD (€5,000) at 1.08500. One pip on this size is worth $0.50:
| EUR/USD a month later | Salary in dollars | Hedge result | Total |
|---|---|---|---|
| 1.04500 | $5,225 | +$200 | $5,425 |
| 1.08500 | $5,425 | $0 | $5,425 |
| 1.12500 | $5,625 | −$200 | $5,425 |
Our calculation, before spread and swap. A spread of 1.2 pips costs $0.60 on this size.
The total stays the same whichever way the rate moves. Read the last row as carefully as the first: when the euro rose, the hedge took away the gain. That is the deal. A hedge removes the uncertainty in both directions. There is also a practical catch: the loss on the trade comes now, while the extra salary comes later, so the account has to carry the margin until then. On an account that is too small, a stop-out can close the hedge at the worst moment.
Hedging vs Diversification
People often treat these as the same thing, or claim hedging is simply the better of the two. They are different tools:
| Hedge | Diversification | |
|---|---|---|
| What it is | A position set against a known risk | Risk spread across positions that don't move together |
| How it works | The hedge gains when the original loses | Losses tend to fall at different times |
| What you pay | Spread, swap or premium on the hedge | Costs of positions you chose to hold |
| What you give up | Gains on the same move | Some of the return of the best position |
| Weak point | Wrong size, or a link between pairs that breaks | Correlation can rise when you need it low |
It is true that diversification has limits. Part of the risk is shared and stays, however many positions you add. For three equal positions sharing one risk budget, volatility relative to one position depends on how closely they move together (their correlation):
| Correlation | Volatility of three, sharing one budget |
|---|---|
| 0.0 | 58% |
| 0.5 | 82% |
| 0.8 | 93% |
| 1.0 | 100% |
Our calculation: √((1 + (n − 1) × correlation) ÷ n), with n = 3. Equal weights and equal volatility assumed.
We apply the same 58%, 82% and 93% figures to robots in how to run several forex EAs.
Correlation can also rise in a stressed market, so assume diversification may help less exactly when you need it most. But none of this makes a hedge the better choice. A hedge doesn't fix that weakness for free: it brings costs of its own and takes away gains. Diversification is how you build a set of positions. A hedge is how you deal with one known risk for a limited time. And a hedge can't make a losing system profitable.
Direct Hedge: Opposite Trades on One Pair
A direct hedge, also called a lock, means holding a buy and a sell of the same size on the same pair. Say you bought 0.10 lot of EUR/USD at the ask, 1.08512. The price falls to bid 1.08400 / ask 1.08412, so you are down $11.20, and you sell 0.10 lot at 1.08400 instead of closing. One pip is worth $1. Here is the result, closing both trades later:
| Later bid / ask | BUY closes | SELL closes | Total |
|---|---|---|---|
| 1.08200 / 1.08212 | −$31.20 | +$18.80 | −$12.40 |
| 1.08400 / 1.08412 | −$11.20 | −$1.20 | −$12.40 |
| 1.08600 / 1.08612 | +$8.80 | −$21.20 | −$12.40 |
Our calculation, before swap, at a constant spread of 1.2 pips.
The price no longer matters: the loss is fixed. It is also $1.20 larger than if you had simply closed the buy at 1.08400, because you pay a second spread. And while both trades stay open, you can pay swap on them. So a lock doesn't undo a loss. It fixes the loss and delays the decision, which is sometimes useful but is never free.
MT4 offers Close By for this case. It closes two opposite positions on one symbol at the same time, and if the lots differ, the remainder stays open. In our example the two trades then close against each other for −$11.20, because you skip the second spread. That is exactly what closing the buy at 1.08400 would have given.
Two more points to check before you try this:
- Not every account allows it. In MT5, an account in netting mode holds one position per symbol, so an opposite trade reduces or closes the position. A hedging-mode account can hold both. US rules are covered below.
- Margin is set by the broker. Opposite positions are often treated as covered, so they can need less margin. Closing one side can then raise the margin you need at once. Check the contract specification and your broker's terms.
Correlation Hedge: Offsetting Across Two Pairs
This type uses two pairs that often move together. A BUY on EUR/USD and a SELL on GBP/USD cancel much of the dollar exposure. What remains isn't flat: it behaves much like a position on EUR/GBP, a trade with its own risk, and you pay two spreads to hold it.
Check each pair as two separate currencies, because this is where hedges go wrong:
| Trades | Dollar exposure | What it is |
|---|---|---|
| BUY GBP/USD + BUY USD/JPY | Largely cancelled | Much like BUY GBP/JPY |
| BUY GBP/USD + SELL USD/JPY | Sold twice | No hedge: the same bet doubled |
Equal lots don't mean equal amounts. 0.10 lot of EUR/USD at 1.08500 is about $10,850, and 0.10 lot of GBP/USD at an illustrative 1.27000 is $12,700, so that pair of trades still leaves you about $1,850 long in dollars. The link between pairs also changes over time, and a measured correlation says little about the next big move. So treat this as a partial offset. As we show in Money Management in Forex, the same logic works in reverse: two trades that look separate can be one larger bet.
Options Hedge: Paying for a Floor
An option gives you the right, without the obligation, to buy or sell at a set price (the strike) by a set date. You pay a premium for that right, and it is the most you can lose on the option.
Say you hold BUY 0.10 lot of EUR/USD at 1.08512 and fear a release next week. You buy a put with a strike of 1.07500 on the same amount, for an invented premium of $60:
| EUR/USD at expiry | BUY trade | Put | Total |
|---|---|---|---|
| 1.06500 | −$201.20 | +$40 | −$161.20 |
| 1.07500 | −$101.20 | −$60 | −$161.20 |
| 1.09512 | +$100 | −$60 | +$40 |
Our calculation, with an invented premium, before swap and option spread. The put pays the distance below the strike.
Unlike a direct hedge, this one keeps the upside, less the premium. That is why options are the closest thing to real insurance, and also why the premium can be high when a big move is expected. Not every retail broker offers options, and they need more knowledge than the other two types, so check what your account really allows.
What a Hedge Really Costs
| Cost | What to check |
|---|---|
| Spread | Paid on the hedge too, and it tends to widen around news |
| Swap | Applied to both sides overnight, and the rates differ |
| Margin | Set by your broker. Closing one side can raise it |
| Premium | The price of an option, lost if the option isn't used |
| Exit | Two positions mean two decisions, and a poor one costs extra |
Because of these costs, a hedge usually suits a short and defined period. It costs too much to keep one on all the time, and a full hedge held for long leaves little to earn.
When Hedging Makes Sense
A simple test: can you name the risk, its size and the date it ends?
- A real currency exposure. A salary, an invoice or a planned payment in another currency is the classic case. Companies commonly use forwards and FX swaps through a bank, so a retail account isn't the only route. Compare the cost first.
- A short, known event. You want to keep a long-term position through a release, and closing it isn't practical. Reducing the size or closing is often simpler, so compare the costs.
- A position an EA manages. You may not want to interfere with its logic for a few hours. A hedge leaves the EA running, but the EA may react to the extra trade, so read its manual first.
It rarely makes sense as a way to avoid taking a loss. Opening a lock on a trade that hit your limit feels safer than closing, but the loss is still there, now with a second position, swaps and a harder exit. If your plan says close, close. A stop loss set in advance is the plainer tool: see Forex Risk Management.
Hedging and Expert Advisors
Hedging can also happen by accident. Two EAs on one account can hold a buy and a sell on the same pair, so you pay for both while they cancel each other out. Check what your EAs hold in total, not one by one.
Some EAs use opposite trades as part of their logic. The word "hedging" in a robot's description doesn't mean it carries less risk. Such a system can hold large open positions on both sides, and it has to get out of them at some point. Judge it the way you would judge any other: by live results, drawdown and margin use. It also has to be allowed on your account, so check this if your account follows the US rules below. For the basics, see how automated forex trading works.
Is Hedging Legal?
It depends on where you are and on the type of hedge. The best-known limit is in the US. National Futures Association (NFA) Compliance Rule 2-43(b) says a forex dealer member may not carry offsetting positions in a customer's account, and has to offset positions on a first-in, first-out (FIFO) basis. So a retail client of a US dealer can't hold a buy and a sell on one pair in the same account. The rule binds the dealer, and it covers that kind of offsetting position, not every form of risk reduction.
Elsewhere, the rules depend on your regulator and on your broker's terms. Many brokers outside the US allow opposite positions, but don't assume it. This article isn't legal advice, so check the rules that apply to you with your broker or a qualified adviser.
FAQ
What is hedging in forex?
Hedging means opening a position to offset the risk of another position or of a real currency exposure. For example, someone paid in euros can sell EUR/USD so that a fall in the euro is offset by a gain on the trade. A rise in the euro then brings a loss on the trade.
Is hedging better than diversification?
Neither is better in general. Diversification spreads risk across positions that don't move together, while a hedge sets one position against a known risk. A hedge can offset a risk that diversification leaves in place, but it costs money and gives up gains on the same move.
Does hedging remove risk?
No. A direct hedge can fix the result on a position, but you still pay spreads and swaps, and you still have to exit two positions. A correlation hedge leaves a position of its own, and an option costs a premium. A hedge changes which risk you carry.
Is direct hedging allowed in the US?
Not for retail clients of US forex dealers. NFA Compliance Rule 2-43(b) bars a forex dealer member from carrying offsetting positions in a customer's account and requires first-in, first-out offsetting. Rules elsewhere depend on the regulator and the broker.
Can I hedge in MT4?
If your broker allows it, you can hold a buy and a sell on one pair, and Close By can close them together. Check your broker's margin terms first, because closing one side can raise the margin you need.
The Bottom Line
- A hedge offsets one specific risk. It also gives up gains on the same move.
- Hedging and diversification do different jobs, and neither is better in general.
- A direct hedge fixes a loss and delays the decision. Closing would give the same result, without the extra costs.
- A correlation hedge leaves a position of its own. Check each currency separately.
- An option keeps the upside, for a premium.
- Rules differ by country: in the US, retail clients of forex dealers can't hold offsetting positions.
If you are just getting started, read our step-by-step guide to start trading.
Sources: NFA, Forex Transactions: Regulatory Guide; MetaTrader 4 Help, Closing Positions; MQL5, hedging position accounting in MetaTrader 5; BIS Triennial Survey 2022. Examples and calculations are our own.
This article is educational and is not investment advice. Trading leveraged products involves risk of loss.