How to Close a Trade on MT5
BY TIOmarkets
|June 8, 2026Closing a trade on MetaTrader 5 means ending an open position and locking in whatever profit or loss has accumulated up to that point. MT5 offers several ways to close a trade, including full closes, partial closes, offsetting hedged positions through the Close By feature, and one-click trading for fast manual exits.
This article explains how closing a trade works on MT5, walks through each of the standard methods, and covers the differences between MT5 and MT4 where they matter.
How Closing a Trade Works on MT5
When you close a position on MT5, the platform sends an instruction to the broker to execute an opposite trade at the current market price. A long position is closed by selling at the bid; a short position is closed by buying at the ask. The difference between the entry price and the close price, multiplied by the position size and adjusted for any swap and commission already applied, is added to or subtracted from the account balance as realised profit or loss.
The position disappears from the Trade tab of the Toolbox window (Ctrl+T) and moves to the History tab, where you can review the full details of the closed trade.
MT5 supports two position accounting systems: hedging and netting. In hedging mode, multiple positions on the same symbol can be opened in opposite directions, similar to MT4. In netting mode, positions on the same symbol are consolidated into a single net position, and opposing trades reduce or close the existing position rather than creating a new one. TIOmarkets operates MT5 accounts in hedging mode, so the close behaviour described in this article applies to TIOmarkets accounts.
How to Close a Position in MT5
There are two main ways to close a single open position in MT5.
The most direct method is from the Toolbox window. Open the Trade tab (Ctrl+T to show the Toolbox if it is hidden), find the position you want to close, right-click it, and select Close Position. A dialog opens showing the symbol, volume, and current bid and ask prices. Click the Close button labelled with the close price. The order is sent to the broker, and the position is closed at the best available market price.
Alternatively, double-click anywhere on the position's row in the Trade tab. The same close dialog opens, ready for you to confirm.
Either method produces the same result. The position is closed at the current market price.
How to Close Part of a Position
MT5 supports partial closes. To close only part of a position rather than all of it, open the close dialog using either method above, then change the Volume field from the full position size to the smaller amount you want to close. For example, to close half of a 1.0 lot position, set Volume to 0.50.
Click the Close button. The platform closes the specified portion of the position and leaves the rest open with a new ticket number. The remaining portion continues to operate with its existing stop loss and take profit unless you change them.
Partial closes are useful for taking some profit off a winning trade while letting the rest run, or for reducing exposure on a position that has moved against you.
How to Close Pending Orders
Closing a pending order is technically called deleting, since the order has not yet opened a position.
In the Toolbox window, switch to the Trade tab and locate the pending order. Pending orders are labelled with their type (Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit, or Sell Stop Limit). Right-click the order and select Delete. The pending order is removed from the broker's server.
You can also right-click and select Modify, which opens the modify dialog from which you can delete the order using the Delete button.
Closing Positions with Close By
Close By is an MT5 feature for hedging accounts that allows you to close two opposing positions on the same symbol against each other, rather than each going through the market individually. Since TIOmarkets uses hedging mode in MT5, the feature is available across all TIOmarkets MT5 accounts.
To use Close By, right-click the position in the Trade tab and select Close By. A list of opposite-direction positions on the same symbol is displayed. Select the position you want to use as the offset and click Close By.
The platform closes the two positions against each other. If they are the same size, both close completely and the realised result is the net of the two entry prices. If they are different sizes, the smaller is fully closed and the larger remains open at its reduced volume. Close By avoids paying the spread on both closes by offsetting against each other.
One-Click Trading
MT5 includes a one-click trading mode that lets you close positions without going through the confirmation dialog.
To enable one-click trading, open Tools > Options > Trade and tick the One Click Trading box. You will be asked to accept the one-click trading terms the first time you enable it.
Once enabled, one-click close buttons appear in the Trade tab and on chart panels. Clicking these closes the position immediately at the current market price with no confirmation. This is faster but removes the opportunity to double-check the order before sending it, so it suits active traders who prioritise speed.
One-click trading can be disabled at any time by unticking the same option.
Trading at TIOmarkets
TIOmarkets offers MetaTrader 5 and MetaTrader 4 on desktop, web, and mobile, across four account types. The Standard account is created automatically on registration with a minimum deposit of $20 or currency equivalent. The Raw and VIP Black accounts are opened separately through the client area. The Nano account is MT5 only with a $20 minimum deposit, USD only. Hedging is supported on all accounts. A swap-free Islamic account is available; contact TIOmarkets for eligibility and instrument requirements. Copy trading is available on both MT4 and MT5.
Orders are executed at the best available market price, which may result in positive or negative slippage. Demo accounts often execute instantly and may not fully replicate live slippage conditions. Spreads are variable and are typically higher than minimum figures shown. Leverage on each instrument is subject to change depending on market conditions and applicable regulatory requirements. You can review the full list of account types on the TIOmarkets accounts page.

FAQ
Risk disclaimer: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money. Never deposit more than you are prepared to lose. Professional client’s losses can exceed their deposit. Please see our risk warning policy and seek independent professional advice if you do not fully understand. This information is not directed or intended for distribution to or use by residents of certain countries/jurisdictions including, but not limited to, USA & Countries included in the OFAC sanction list. The Company holds the right to alter the aforementioned list of countries at its own discretion.
TIOmarkets offers an exclusively execution-only service. The views expressed are for information purposes only. None of the content provided constitutes any form of investment advice. The comments are made available purely for educational and marketing purposes and do NOT constitute advice or investment recommendation (and should not be considered as such) and do not in any way constitute an invitation to acquire any financial instrument or product. TIOmarkets and its affiliates and consultants are not liable for any damages that may be caused by individual comments or statements by TIOmarkets analysis and assumes no liability with respect to the completeness and correctness of the content presented. The investor is solely responsible for the risk of his/her investment decisions. The analyses and comments presented do not include any consideration of your personal investment objectives, financial circumstances, or needs. The content has not been prepared in accordance with any legal requirements for financial analysis and must, therefore, be viewed by the reader as marketing information. TIOmarkets prohibits duplication or publication without explicit approval.
Join us on social media
Authors BIO

Behind every blog post lies the combined experience of the people working at TIOmarkets. We are a team of dedicated industry professionals and financial markets enthusiasts committed to providing you with trading education and financial markets commentary. Our goal is to help empower you with the knowledge you need to trade in the markets effectively.





