Hedging in forex is opening a second position that gains when your first position loses, so that a move against you is partly or fully offset. On MetaTrader 5 (MT5), the most common version is holding a buy and a sell on the same currency pair at the same time. This guide covers how forex hedging works, the main hedging strategies, how to set up and close a hedge on MT5, and what a hedge really costs.
What Does Hedging Mean in Forex Trading?
Hedging in forex trading means taking a position designed to reduce the risk of an existing one, usually by trading the same currency pair in the opposite direction or trading a correlated pair. A hedge does not make a losing trade profitable. A forex hedge limits how much further a position can lose while the hedge stays open.
The general idea comes from finance as a whole: a hedge in finance is an investment that reduces the risk of loss on another investment, typically by taking an opposite position in a related asset. Airlines hedge fuel costs, exporters hedge foreign currency revenue, and forex traders hedge open positions.
For a retail trader, forex hedging usually appears in one of three situations. A trader is holding a swing position and wants protection through a high-impact news release without closing. A trader expects a short pullback inside a longer trend. Or a trader is in a losing trade, does not want to accept the loss, and "locks" it instead, which is the use that causes the most trouble.
How Forex Hedging Works on MetaTrader 5
Forex hedging works on MetaTrader 5 only when the account uses the hedging position accounting system, which lets you hold several positions on one symbol, including a buy and a sell at once. On a netting account, a sell order simply reduces or closes your existing buy instead of opening a hedge.
Hedging vs Netting Accounts on MT5
MetaQuotes' MT5 documentation states that the platform supports two position accounting systems, netting and hedging, and that the system depends on the account and is set by the broker. You cannot switch between them inside the terminal. If you want to hedge, the MetaTrader 5 account itself must be opened in hedging mode.
Under netting, you can have only one position per symbol. Buying 1.00 lot of EUR/USD and then selling 1.00 lot closes the position flat; selling 1.50 lots reverses it into a 0.50-lot short. Under hedging, the same sell opens a separate 1.00-lot short, and both positions appear as separate lines in the Trade tab, each with its own ticket, open price, stop loss and take profit.
You can check which mode you are on in about five seconds. Open a small buy on any pair, then open a small sell on the same pair. If two lines appear in the Trade tab, the account hedges. If the position disappears, the account nets.
Why MT5 Hedging Mode Matters for Stops and Targets
In hedging mode, each leg keeps its own stop loss and take profit, so one leg can close automatically while the other stays open. That is the moment many beginners lose control of a hedge. If the short leg hits its take profit during a dip and the market then rallies, you are left holding the original long with no protection.
Main Forex Hedging Strategies
The three main forex hedging strategies are the direct hedge (an opposite position on the same pair), the correlation hedge (a position on a related pair) and the options hedge (buying a currency option). Retail traders on MT5 use the first two most, because spot forex options are rarely available on a standard CFD account.
Direct Hedge on the Same Currency Pair
A direct hedge, also called a lock or a perfect hedge, means holding a buy and a sell of equal size on the same currency pair. While both legs are open, the net profit and loss stops moving, apart from spread changes and swap charges. The direct hedge freezes the result; it does not improve it.
A partial direct hedge uses a smaller opposite position. A trader long 2.00 lots of GBP/USD who sells 1.00 lot before a Bank of England decision halves the exposure while keeping a view on the long side.
Correlation Hedge with a Related Pair
A correlation hedge uses a second currency pair that tends to move with or against the first. EUR/USD and GBP/USD usually move in the same direction, so a long EUR/USD can be partly hedged with a short GBP/USD. EUR/USD and USD/CHF usually move in opposite directions, so a long EUR/USD can be partly hedged with a long USD/CHF.
Correlation hedges are imperfect by design. Correlations change, especially around news that affects only one of the currencies, so a correlation hedge can lose on both legs at once.
Options Hedge
An options hedge means buying a put or call option on the currency pair, which caps the loss at the option premium while leaving the upside open. Options hedging is standard for corporations and funds. Most retail CFD accounts do not offer listed forex options, so this strategy matters mainly as context.
How to Hedge a Position on MT5 Step by Step
To hedge a position on MT5, confirm the account is in hedging mode, open a new market order on the same symbol in the opposite direction, choose the hedge volume and decide whether each leg gets its own stop loss. Both positions then sit side by side in the Trade tab.
Check that your account uses hedging mode by opening two small opposite trades on one symbol and confirming both appear.
Note your existing position's ticket, direction, volume and open price in the Trade tab.
Press F9 or right-click the chart and choose Trading, then New Order, with the same symbol selected.
Enter the hedge volume: the full volume for a complete lock or a smaller volume for a partial hedge.
Click Sell by Market to hedge a long, or Buy by Market to hedge a short.
Decide whether to attach stops to each leg. Without stops, the hedge stays locked until you unwind it manually.
Watch the Trade tab: the combined profit and loss should now move only with spread and swap changes.
On a mobile MT5 app the steps are the same, but the order screen opens from the Trade tab with the plus icon or from the quotes list. The two legs show as separate positions in the Trade list.
How to Close a Hedge with Close By on MT5
The Close By function on MT5 closes two opposite positions on the same symbol against each other in one operation. MetaQuotes' documentation states that Close By saves the trader one spread, because each position is closed at the other position's open price instead of at the current bid or ask.
To use Close By, double-click one of the positions in the Trade tab or right-click it and select Close Position. In the Type field, select Close By, choose the opposite position from the list, and click Close. If the two positions have different volumes, the smaller one closes in full and a position equal to the difference stays open in the direction of the larger leg.
Close By is available only on hedging accounts. A trader who closes both legs separately with two market orders pays the spread twice on exit, and in a fast market the two fills can also slip apart. Execution quality decides how far apart they land, which is one practical way to judge the best forex broker for a hedging style. On EUR/USD with a 1-pip spread, Close By on a 1.00-lot hedge saves roughly $10.
Worked Example: What a Forex Hedge Locks In
A forex hedge locks in the profit or loss that exists at the moment you open it. The numbers below show a direct hedge and a correlation hedge with real-style EUR/USD prices, including where most traders miscalculate.
Direct Hedge Example on EUR/USD
You buy 1.00 lot of EUR/USD at 1.0850. Price falls to 1.0800, so the long is 50 pips down, which is -$500, since one pip on a standard lot of a USD-quoted pair is worth $10. Expecting euro-zone data to push the pair lower, you sell 1.00 lot at 1.0800.
Now price falls to 1.0700. The long is -$1,500 and the short is +$1,000, so the total is still -$500. Price then recovers to 1.0900: the long is +$500 and the short is -$1,000, again -$500 in total. Whatever happens, the account shows the same -$500 plus costs until you remove one leg.
The hedge only helps if you later lift the right leg at the right time. If you close the short at 1.0700, you bank +$1,000 and hold the long at -$1,500; the hedge has worked only if EUR/USD then recovers more than 50 pips. Lifting a leg is a new directional trade, and it needs its own reason.
Correlation Hedge Example with Pip Value Matching
You are long 1.00 lot of EUR/USD and want to hedge with a long USD/CHF position. A pip on EUR/USD is $10 per lot. A pip on USD/CHF at 0.8000 is worth 10 Swiss francs per lot, which converts to $12.50.
Buying 1.00 lot of USD/CHF would over-hedge the position by 25%, because each USD/CHF pip is worth more than each EUR/USD pip. Dividing $10 by $12.50 gives 0.80, so a 0.80-lot USD/CHF position matches the dollar sensitivity. Most guides skip this step, and the mismatch turns the "hedge" into a new net short-dollar bet.
What Does Hedging Cost? Spreads, Swaps and Margin
Hedging costs the spread on every leg you open and close, the overnight swap on each leg you hold past the daily rollover and, depending on the account, extra margin for the hedged volume. A direct hedge removes price risk but never removes these costs, so a locked position slowly loses money every day it stays open.
Margin on Hedged Positions in MT5
MT5's contract specification includes a Hedged margin setting that applies only to hedging accounts. Under the basic calculation, margin is charged only on the uncovered volume, so a fully locked 1.00-lot buy and 1.00-lot sell can require little or no extra margin. If the broker sets a hedged margin value, the covered volume is charged at that rate, and some symbols use a "larger leg" method instead.
Margin treatment on hedges varies by symbol and by account, so check the Specification window for the pair before relying on a hedge to free up margin. Right-click the symbol in Market Watch, choose Specification, and look for the Hedged margin line. A hedge opened on a near-margin-call account can still push the margin level lower if the hedged margin is not zero, so confirm the setting before you rely on it.
Swap Charges on Both Legs
Swap is the overnight financing charge or credit for holding a position past the daily rollover, and on a hedge both legs pay or earn it separately. Because brokers add a markup, the long-swap and short-swap on most pairs do not cancel out. On many pairs, both are negative, so a locked hedge pays swap twice every night.
The cost is easy to underestimate. If EUR/USD carries a long swap of -$7 and a short swap of -$2 per lot per night, a 1.00-lot lock costs about $9 a night, and three times that on the triple-swap day. Held for a month, the lock can cost close to $200 before any price movement, which is why hedges are for short windows, not long-term parking.
Is Forex Hedging Legal and Allowed by Brokers?
Forex hedging is legal in most jurisdictions, and most brokers outside the United States allow it on MT5 hedging accounts. The main exception is US retail forex: National Futures Association (NFA) Compliance Rule 2-43(b), in force since 2009, bars US forex dealers from letting retail clients hold opposite positions in the same pair.
The NFA rule comes with a first-in, first-out (FIFO) requirement, so US retail positions in the same pair must be closed in the order they were opened. Traders outside the US are usually not affected, but individual brokers set their own policies. Some restrict hedging during promotions, on bonus funds or across linked accounts, so read the account terms before using a hedge.
Islamic traders sometimes ask whether hedging changes anything on a swap-free account. Swap-free accounts remove overnight interest, so a locked hedge on that account type does not pay swap on both legs, though administration fees or holding limits can apply instead and should be checked in the account terms.
Common Forex Hedging Mistakes
The most common forex hedging mistake is locking a losing trade instead of closing it. The lock feels like avoiding the loss, but the loss is still there, the costs keep running, and the trader now has to make two correct decisions to get out instead of one.
A second mistake is unwinding a hedge on emotion. Traders often close the profitable leg too early, then watch the remaining losing leg run further against them. Before opening any hedge, decide in writing which leg you will close first and what price or event will trigger it.
A third mistake is hedging into news without stops. Spreads widen sharply around releases such as US Non-Farm Payrolls, and a hedge opened just before the release can be filled at a poor price on both legs. A fourth mistake is ignoring pip-value differences in correlation hedges, which quietly changes the risk instead of reducing it.
Is Hedging Better Than Using a Stop Loss?
Hedging is rarely better than a stop loss for a retail trader. A stop loss closes the position at a defined level, ends the cost of holding it and frees the margin. A direct hedge keeps the position open, adds spread and swap, and still requires a decision later. The loss at the moment of hedging is the same.
Hedging makes more sense than a stop loss in narrow cases: protecting a long-term swing position through a single event while keeping its original entry, or holding a core position while trading a short-term pullback on the same pair. In both cases the trader has a clear plan for when the hedge comes off.
For most day traders and beginners, a stop loss placed at a level that invalidates the trade idea does the same job more cheaply. If you find yourself opening hedges to avoid taking a loss, a smaller position size and a firm stop will protect the account better than any lock.
Key Takeaway on Forex Hedging
A forex hedge freezes your current result rather than fixing it, and it costs spread, swap and sometimes margin for as long as it stays open. Use one only with a hedging-mode MT5 account, a defined reason, and a written plan for which leg comes off first and when.
