Blog← Back to site
🌐 Language
DeutschFrançaisItalianoEspañolPortuguêsNederlandsPolskiTürkçeالعربيةहिन्दीTiếng ViệtBahasa IndonesiaBahasa Melayuไทย中文日本語РусскийСрпскиSlovenščina
Automatic translation by Google Translate, at your request. The English version is the binding one; the service, support and terms are in English.

Close all trades at once on MT5, on PC and on your phone

Published 5 November 2026 · about 6 minutes to read

Free tools: Daily Loss Limiter for MT5 (locks the day at your limit) · Daily loss calculator · Last checked 5 November 2026 by the Spectar FX team.

On the desktop terminal you can close positions one by one from the Trade tab, and current versions also offer bulk closing in the right-click menu of that tab; a script such as our free Spectar Close All does the same in one step. The MT5 phone apps close positions one at a time, and scripts do not run on a phone.

There are moments when you want everything flat now: news is about to land, the day has gone wrong, or you simply want to stop. With two positions that is easy. With eight positions across three symbols, plus pending orders, closing them one by one takes time you may not have. Here is what MetaTrader 5 offers and where a script helps.

On the PC terminal: one position at a time

Open the Toolbox (Ctrl+T) and go to the Trade tab. Each open position has its own row. Double-click a row to open the order window and choose Close, or right-click the row and choose Close Position. With one-click trading switched on, each row also has a small close button at its end that closes the position straight away.

This is fine for a few trades. It is slow when there are many, and each close is a separate order filled at its own price.

The right-click menu in newer versions

Current desktop versions of MetaTrader 5 have a Bulk Operations item when you right-click in the Trade tab. It typically offers choices such as closing all positions, closing only profitable or only losing ones, closing positions on one symbol, and deleting pending orders.

A few practical notes, because terminals differ:

Treat the menu names here as a guide and look at your own terminal before you need it in a hurry.

A Close All script

A script is a small program that runs once when you drop it on a chart and then stops. A close-all script sends the closing orders for you, so you do not have to work down the list.

Our free Spectar Close All script runs in MetaTrader 5 for Windows. It can close every open position on the account or only those on the chart’s symbol, deletes pending orders unless you switch that off, asks you to confirm before it acts, and closes the oldest positions first, so hedging, netting and FIFO accounts are handled. Installation is the usual one: copy the file into MQL5\Scripts through File → Open Data Folder, refresh the Navigator, drag it onto a chart, and keep Algo Trading switched on.

It acts once, when you start it. It does not watch your account during the day. If you want positions closed automatically when a daily limit is reached, that is a different tool; see how to set a daily loss limit on MT5.

On your phone

The MetaTrader 5 apps for Android and iPhone let you close a position from the Trade tab: tap or hold the position and choose Close. As far as we are aware, the phone apps do not offer a close-all button, but versions change, so check your own app.

Scripts and Expert Advisors do not run in the phone apps at all; they run only in the desktop terminal. If you often need to close everything while away from your desk, two options are common: close each position in the app, or keep the desktop terminal running on a Windows VPS and connect to it remotely.

Before you press it

Questions

Does MT5 have a close all button?

Current desktop versions offer Bulk Operations in the right-click menu of the Trade tab, which includes closing all positions. It depends on your terminal version, and one-click trading may need to be on. The phone apps close positions one at a time.

Can I run a close-all script on my phone?

No. Scripts and Expert Advisors run only in the desktop MetaTrader 5 terminal. On a phone you close positions one by one, or connect to a desktop terminal running on a VPS.

Will closing all trades also delete pending orders?

Not automatically. Positions and pending orders are separate. Our free Spectar Close All script deletes pending orders by default unless you switch that off.

Where Spectar FX Gold fits

In Spectar FX Gold, closing the bot window does not close your open position; it stays on your account and remains yours to manage.

Spectar FX Gold is a subscription service for MetaTrader 5, for gold (XAUUSD). You set every number yourself — lot sizes, daily stop, daily target, trading hours and news window — and the rules work within those settings; we set no number for you and recommend none. When the daily stop is reached, the position is closed and nothing new is opened until the next day, which starts when the market opens in your broker’s server time.

It runs on your own MetaTrader 5 account. We never receive your broker password, never hold funds, and there are no signals. A gap in the market or slippage at your broker can carry a position past any limit; a daily stop is a setting, not a promise. The plans are MANUAL, SEMIAUTO and AUTO, monthly or yearly, with an 8-day free trial on MANUAL monthly. You can read more in the FAQ.

Keep your daily limit in one place: the free Daily Loss Limiter for MT5 locks the trading day once today's loss reaches the figure you set, and the daily loss calculator shows the balance where that happens.

Related: Free Spectar Close All script · Daily loss limit and broker server midnight · What happens when the daily stop is reached

See the plans. MANUAL €49, SEMIAUTO €85, AUTO €125 per month, plus VAT — every number set by you. MANUAL monthly starts with an 8-day free trial — no card needed (add a payment method only if you want to continue at €49 + VAT/month).
Compare plans Add-ons Questions & Answers
Trading involves high risk of loss. Service only - no signals, no advice. Trading leveraged CFDs such as gold (XAUUSD) carries a high risk of losing your entire capital. Past performance is no guarantee of future results. Spectar FX Gold is a tool: the trading rules run on our server within numbers you set yourself; we set no number for you, recommend none and do not assess whether trading is suitable for you. We are not affiliated with, endorsed by or a partner of any proprietary trading firm or broker; names of firms are used only to describe common rules.
↑