Close By in MT5 and closing two opposite positions for one spread
Posted: Mon Oct 19, 2026 8:57 am
Close By in MT5 and closing two opposite positions for one spread
If you trade on an MT5 hedging account, or MT4, there's a function called Close By that a lot of people don't know exists.
The idea is simple. You have a buy and a sell open on the same symbol. Instead of closing each one separately, which means each closing trade crosses the spread, Close By closes one against the other. The two positions offset each other at their own prices, and you avoid paying the spread on a second exit.
Where this comes up for scalpers is mostly when hedging during a news spike, when running two strategies that end up on opposite sides of the same pair, or when you add a position the other way to lock a level and later want out of both.
To use it in MT5, open the order window from one of the positions, choose Close By as the type, and pick the opposite position from the list. The sizes don't need to match. If one is bigger, the leftover part stays open.
A couple of things to check with your broker. Some charge commission on Close By the same as a normal close, so the saving is just the spread. Some account types don't allow it at all. And on a netting account it doesn't apply, because you can't hold opposite positions in the first place.
If you trade on an MT5 hedging account, or MT4, there's a function called Close By that a lot of people don't know exists.
The idea is simple. You have a buy and a sell open on the same symbol. Instead of closing each one separately, which means each closing trade crosses the spread, Close By closes one against the other. The two positions offset each other at their own prices, and you avoid paying the spread on a second exit.
Where this comes up for scalpers is mostly when hedging during a news spike, when running two strategies that end up on opposite sides of the same pair, or when you add a position the other way to lock a level and later want out of both.
To use it in MT5, open the order window from one of the positions, choose Close By as the type, and pick the opposite position from the list. The sizes don't need to match. If one is bigger, the leftover part stays open.
A couple of things to check with your broker. Some charge commission on Close By the same as a normal close, so the saving is just the spread. Some account types don't allow it at all. And on a netting account it doesn't apply, because you can't hold opposite positions in the first place.