tocOn this page 8 sections
MetaTrader's Mac builds run the Windows terminal inside Wine, a compatibility layer, so you get a translated copy that stops whenever your Mac sleeps, loses Wi-Fi or reboots for an update. A Windows VPS runs the native MT4 or MT5 terminal on a machine that stays on, and you control it from your Mac over Remote Desktop. This guide covers why Wine causes problems and how to move an existing Wine install to a VPS without losing your Expert Advisors, indicators or chart layouts.
Why Wine Is a Weak Base for Live Trading
Wine is useful for testing a strategy or reading charts. It is a poor base for an EA that has to trade unattended:
- The Mac has to stay awake. Closing the lid, an energy-saver timeout or a dropped home connection disconnects the terminal, and an EA that is not connected cannot manage open positions.
- Two translation layers on Apple Silicon. On M-series Macs the Windows x86 code goes through Wine and also through Apple's Rosetta translation. Each layer adds a place where a macOS update can break things.
- DLL imports are unreliable. EAs that call Windows DLLs, such as bridges, licensing checks or custom libraries, may fail to load or behave differently under Wine.
- Interface glitches. Missing fonts, redraw problems and slow Strategy Tester runs are common. When something goes wrong you can't tell whether the cause is the EA, the broker or Wine.
On a Windows Server VPS none of these apply. The terminal runs on the operating system it was built for, in a data center with steady power and network.
Step 1: Export Your Files from the Mac Terminal
Don't search through the Wine prefix by hand. Open MT4 or MT5 on the Mac and choose File > Open Data Folder. Finder opens at the terminal's data directory inside the Wine environment. Copy these folders into one folder on your Mac, for example ~/mt-export:
MQL4orMQL5. This holdsExperts,Indicators,Scripts,Include,Libraries,PresetsandFiles.profiles. Your chart layouts, including which EA is attached to which chart.templates. Saved chart templates (.tpl).
Include the .mq4/.mq5 source files if you have them, not only the compiled .ex4/.ex5 files. Then you can recompile on the VPS if the compiled files don't match the server's terminal build.
Step 2: Connect from the Mac with a Shared Folder
Use Microsoft's Windows App, the Mac RDP client from the App Store. Edit the saved connection to your VPS, open the Folders tab, turn on Redirect folders and add ~/mt-export. If you haven't set up the client yet, follow our guide to connecting from a Mac to a Windows VPS over RDP first.
After you connect, the shared folder appears on the VPS under \\tsclient\mt-export.
Step 3: Install the Terminal and Copy Files In
Download the MT4 or MT5 installer from your broker on the VPS and install it. Start it once and log in so it creates its data folder. Then choose File > Open Data Folder and copy the path from Explorer's address bar. For a standard install it looks like %APPDATA%\MetaQuotes\Terminal\<long-hash>. For full install and settings details, see our MetaTrader 5 VPS setup guide.
Close the terminal before you copy, so it doesn't overwrite profiles when it exits. Then run this in PowerShell:
$src = '\\tsclient\mt-export'
$dst = "$env:APPDATA\MetaQuotes\Terminal\<long-hash>"
Copy-Item "$src\MQL5\*" "$dst\MQL5" -Recurse -Force
Copy-Item "$src\profiles\*" "$dst\profiles" -Recurse -Force
Copy-Item "$src\templates\*" "$dst\templates" -Recurse -Force
# Sanity check: file counts should match the Mac export
(Get-ChildItem "$src\MQL5" -Recurse -File).Count
(Get-ChildItem "$dst\MQL5" -Recurse -File).Count
For MT4, replace MQL5 with MQL4. If the second count is lower than the first, check the copy before you go on.
Step 4: Recompile, Enable and Attach
- Open the terminal and log in to your trading account.
- In the Navigator, right-click Expert Advisors and choose Refresh. If an EA is missing or shows an error, open its source in MetaEditor (F4) and compile it (F7).
- Go to Tools > Options > Expert Advisors. Turn on Allow algorithmic trading. Turn on Allow DLL imports only for EAs that need it. If an EA calls a web API, add its URL under Allow WebRequest for listed URL.
- Load your profile under File > Profiles, then confirm that each chart shows the EA's smiley or active icon in the top-right corner.
- Click the Algo Trading (MT5) or AutoTrading (MT4) toolbar button so it turns green.
Step 5: Shut Down the Mac Copy and Disconnect Correctly
Close MetaTrader on the Mac, or at least turn off algo trading there. If the same EA runs on the same account in two terminals, it can open duplicate orders.
When you're done on the VPS, close the Windows App window or use Start > your user icon > Disconnect. Do not choose Sign out: signing out closes your session and the terminal with it. To make sure the terminal comes back after Windows Update restarts the server, set up automatic MT4 and MT5 restarts after reboots.
Where Wine Still Fits
Keep the Mac copy for charting, manual analysis or a quick check while you're away from the VPS. Leave live EAs, copy-trading and anything with open positions overnight on the server. For plan sizing and data center choice by broker, see our Windows VPS for forex trading page.
FAQ
Do I need a Windows license on my Mac to do this?
No. Windows runs on the VPS and is included with the server. On the Mac you only need the free RDP client.
Will my EA settings carry over?
Yes, if you copy the profiles folder and any .set files in Presets. Before going live, open each EA's inputs (F7 on the chart) and check the values.
Can I log in to the same trading account from both the Mac and the VPS?
Most brokers allow several terminals on one account at once. Only one of them should run an EA. Use the Mac for viewing and leave the trading to the VPS.
Run this on your own Windows VPS
Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.
Written by the WindowsVPS Team
We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.