MetaTrader 5 on Mac and Linux: how to install and run an EA
By Fernando Funicelli · Founder of Lucky Dogs Trading Systems

You can use MetaTrader 5 on Mac and on Linux. On the Mac, with the official macOS installer, which installs Wine and MT5. On Linux, with Wine, the layer that runs Windows programs. In both, what opens is the MT5 terminal, where an EA (the MT5 trading robot) runs.
You bought a MacBook, went to download MT5 and the big button on the page said Windows. Or you use Ubuntu, and your broker's site doesn't even mention Linux. After half an hour, the platform opens and the EA turns on. The next morning, nothing happened: the laptop went to sleep and took the robot with it. Or the MQL5 community login wouldn't open, and the EA you bought didn't even show up in the list.
On Mac and Linux, installing MT5 is the easy part. The work is keeping the EA awake.
If you are still getting the idea, start with what a trading robot is and how it works.
Can you use MetaTrader 5 on Mac and Linux?
Yes. The path changes by system, and the result is the same terminal you would use on Windows.
| System | How MT5 runs | Does the EA run? | Strategy Tester? |
|---|---|---|---|
| Windows | native program | yes | yes |
| Mac (Apple silicon, M1 onward) | official installer, with Wine inside | test it on a demo account | the help doesn't mention it |
| Linux (Ubuntu, Mint, Debian, Fedora) | through Wine, with an official script | yes: all features, says the help | same |
| Windows VPS (a cloud computer), accessed from a Mac or Linux machine | native, on the server | yes | yes |
| Phone (iPhone and Android) | its own app | no | no |
This guide covers desktop MT5: the phone app doesn't run EAs and has no tester.
How to install MetaTrader 5 on Mac, step by step
- Download it from the official MetaTrader 5 site or your broker's. The official MetaTrader 5 help for Mac and the download page at metatrader5.com point to the MetaTrader5.pkg.zip file, not a .dmg. Never download from another site.
- Run the file and follow the instructions. The assistant downloads and installs Wine, then installs MT5 inside it.
- Accept Wine Mono and Gecko, which the assistant asks for: the platform needs them.
- Wait for the assistant to finish. It is all automatic.
- Log in to your broker account. In the File menu, use Open an Account (a demo, for example) or Login to Trade Account for an account you already have.
- Check gold in Market Watch. The name changes from broker to broker: XAUUSD, GOLD, XAUUSD+. If it doesn't show, right-click the window, choose Symbols and double-click gold's name.

Mac with Apple silicon (M1, M2, M3, M4)
Does MT5 work on a MacBook with Apple silicon, an M1, M2 or M3 chip? The official help says yes, on all Apple processors, from the M1 to the latest, with macOS Catalina (10.15.7) or newer. It doesn't mention Intel Macs.
Is MetaTrader 5 on Mac native?
The short answer: you install it like any Mac app, but on the inside it runs on Wine. MetaQuotes explains in the official help that the installer downloads Wine, configures it and installs MT5 inside it.
How to install MetaTrader 5 on Linux (Ubuntu, Debian, Mint and Fedora)
- Check your distribution. The official script supports Ubuntu, Debian, Linux Mint and Fedora.
- Open the Terminal without administrator privileges (no sudo) and run the command from the official MetaTrader 5 help for Linux. It downloads the mt5linux.sh script and starts it; copy the command from the page, unchanged.
- Enter your Linux user password (not your broker's), accept Mono and Gecko and follow the default installer.
- Restart the system, as the help says, and open MT5. Log in to the account, demo or real.
- Check gold in Market Watch, as on the Mac.

How to run an EA on MT5 on Mac or Linux
The good news: the clicks are the same as on Windows. Dragging the EA onto the chart, ticking the permission and turning the Algo Trading button green are in how to install a robot (EA) in MT5, step by step.
What changes on Mac and Linux is four details:
- The data folder. It lives in the Wine environment, by default in ~/Library/Application Support/net.metaquotes.wine.metatrader5 on Mac and in ~/.mt5 on Linux, inside drive_c/Program Files/MetaTrader 5. To open it, use File → Open Data Folder. That is where an EA in an .ex5 file goes, in the MQL5 folder and then Experts.
- The MQL5 community login. It is what brings the EAs bought on the Market into the terminal. Go to Tools → Options → Community and log in with your MQL5 account. Then, in the Toolbox, Market tab, under Purchased, the EA waits for your click on Install. If the login won't open in Wine, one way out is a Windows VPS.
- Activations. Each Market purchase comes with a number of activations, and each one is an install on a different computer or VPS. Ours come with 7. By the official help, the activation ties the EA to the computer: switching computers or reinstalling the system can use one. Planning your activations is in how to buy an EA on the MQL5 Market, with activations.
- The EA's parameters. On a new EA, the window opens when you double-click it in the Navigator or drag it onto the chart. On an EA already on the chart, double-click its name in the corner of the chart.
Mac and Linux: the EA stops when the computer sleeps
Here is the stumble no installation tutorial mentions. The EA only decides with MetaTrader 5 open and connected. If the terminal stops, the EA stops with it.
And a laptop stops a lot: lid closed, automatic sleep, an update that restarts in the middle of the night.
On the Mac: with the charger plugged in, prevent automatic sleep in the energy settings and let only the screen turn off. And leave the lid open: closed, the MacBook sleeps even on the charger, unless an external monitor is connected.
On Linux: turn off automatic suspend in your distribution's power settings, including the action for closing the lid.

And the trade that was already open when the computer went to sleep? It depends on where the stop is:
- If the stop went along with the order to the broker's server, the trade stays protected, with the terminal closed or not.
- If the EA closes the trade from its own terminal, the trade has nobody to close it until MetaTrader is back.
Among our EAs, it works like this, the way each one's page says:
- Pitbull Gold: every order reaches the server already with the profit target and the stop. If the terminal goes down, both stay there.
- Beagle Gold: every order arrives with the stop on the server.
- Doberman Gold: every order reaches the server with the stop attached. If the terminal goes down, the trade stays protected.
- Cane Corso Gold: every order goes out with the stop loss and the take profit attached. If the terminal goes down, the stop loss and the target stay on the server.
- Collie Gold: it closes its baskets at the current price, so MetaTrader stays on all the time. A VPS solves that.
On these EAs, to follow each trade to the end, the terminal stays on. The stop on the server protects the open trade. The EA being on is what takes care of the next one.
When a VPS beats a Mac or a Linux machine
A VPS is a cloud computer that stays on day and night. You install MT5 on it and reach it from your desk, from a Mac or a Linux machine.
| Where the EA sits | Do you need Windows at hand? | Stays on 24 hours? | Good for |
|---|---|---|---|
| MT5 on your Mac or Linux | no | only if the computer doesn't sleep | testing, following along, an EA that leaves the stop on the server |
| A Windows VPS | no: you connect by remote desktop | yes | an EA that needs the terminal always on |
| MetaTrader's own VPS | no | yes | people who don't want to manage a server |
The official help describes renting MetaTrader's VPS from MT5, with the Register a Virtual Server command in the Navigator's context menu, without saying whether it works on Mac and Linux.
With the EA on a VPS, your Mac can sleep, travel and update all it wants. How to choose one, how much it needs to have and how to set it up are in the guide on a VPS for your MT5 robot: whether you need one and how to choose.
The most common mistakes on MT5 on Mac and Linux
- Downloading from a site that is neither the official one nor your broker's. An installer from an unknown source can carry off your account password. Instead: only the official site or your broker's.
- Letting the computer sleep with the EA on. Instead: adjust sleep as in the section above, or move the EA to a VPS.
- Updating the system while the EA is trading. An update that restarts takes the terminal down in the middle of a trade. Instead: update with the market closed, on the weekend, and check that the EA is on afterward.
- A wrong computer clock or time zone. Instead: keep automatic time on. Collie Gold, Pitbull Gold, Beagle Gold, Doberman Gold and Cane Corso Gold detect the broker's time zone on their own, with nothing to set.
- Installing the EA in the wrong folder. On Wine and on the Mac there are several similar folders. Instead: always use File → Open Data Folder.
- Switching computers or reinstalling the system for no reason. That can use an activation. Instead: check what uses one and what doesn't in the installation guide.
Our gold EAs on your MetaTrader
Collie Gold, Pitbull Gold, Beagle Gold, Doberman Gold and Cane Corso Gold each have a free demo that runs in the Strategy Tester, MT5's testing tool, with your broker's data. You see it trade by trade before you decide. If the tester won't run on your computer, use a Windows machine or a VPS.
In the test with real ticks in the Strategy Tester:
- Pitbull Gold: +884% in 2025, on the Balanced profile, and 21 of 22 months in profit in 2025 and 2026. Target and stop on the broker's server from entry, the natural choice for anyone trading from a laptop.
- Doberman Gold: +162% in 2025, on the Balanced profile. The largest drop in the continuous test, from January 2023 to November 8, 2026, was 32% on equity and 30% on balance.
- Cane Corso Gold: +367% in 2025, on the Balanced profile. The largest drop in the continuous test, from January 2023 to November 14, 2026, was 41% on equity and 40% on balance.
- Beagle Gold: +184% in 2025, on the Moderate profile.
- Collie Gold: +589% in 2025, on the Moderate profile.
These EAs recognize gold under any name, and choosing the profile is the entire setup: one adjustment, and the EA takes care of the rest. See our gold EAs side by side, with the free demo, or go straight to Pitbull Gold, with the target and the stop on the broker's server.
Frequently asked questions
Does MetaTrader 5 work on a MacBook with Apple silicon (M1, M2 or M3)?
It works through the official macOS installer, which supports Apple silicon processors from the M1 onward, according to the official help.
Can I buy and use an MQL5 Market EA on a Mac?
Yes, by the path the official help describes for MT5: your MQL5 account in Tools → Options → Community and the install from the Market tab, under Purchased. Each install on a different computer uses an activation; ours come with 7. The buying walkthrough is in how to buy an EA on the MQL5 Market.
Does the Strategy Tester work on Mac and Linux?
On Linux, the official help says all the platform's features are available; on the Mac, it doesn't mention the tester. Try a short demo before counting on it. Speed depends on your computer, and a Windows VPS runs the test the same way.
Which Linux distribution is best for MetaTrader 5?
The official script supports Ubuntu, Debian, Linux Mint and Fedora; the help doesn't list versions or name a best one. Use the distribution you already know, if it is one of these four.
Can I run MT5 on a headless Linux server (or Docker)?
The official help doesn't cover it, so there is no official path; building and maintaining something like that is work for someone who runs servers. For an EA that stays on 24 hours, a Windows VPS is simpler.
Why won't MetaTrader 5 open on my Mac?
First check whether your macOS is Catalina (10.15.7) or newer, the minimum in the official help. If you were already using MT5 on the Mac, your Wine may be older than 8.0.1 (the version shows in the platform's log). In that case, the help recommends saving your templates, EAs and indicators, dragging MT5 from the Applications folder to the trash, deleting the Metatrader 5 and net.metaquotes.wine.metatrader5 folders in ~/Library/Application Support (in Finder, the Go > Go to Folder menu shows that hidden folder) and installing again.
On Mac and Linux, MT5 installs easily. Keep the EA awake, or choose one that sends the stop to the server along with the order, and run the free demo in your MetaTrader or, if the tester won't run, on a Windows machine or a VPS. See our gold EAs side by side and pick yours.


