News
New Amsterdam High Performance Cluster Launched
Serverspace Black Friday
AC
Artemis Cooper
August 4 2026
Updated August 3 2026

How to Install MetaTrader on a VPS

How to Install MetaTrader on a VPS

MetaTrader can run on a home computer, but that setup stops being reliable as soon as the laptop sleeps, the internet connection drops, or the power goes out. For manual trading this may be inconvenient. For Expert Advisors, copy-trading tools, and strategies that must stay connected to a broker continuously, it can interrupt the entire workflow.

A VPS solves that problem by moving MetaTrader to a remote server that remains online independently of your personal computer. This guide explains how to choose a VPS for MetaTrader, install MT4 or MT5 on Windows or Linux, configure Expert Advisors, reduce avoidable downtime, and check that the terminal continues running after you disconnect.

The technical setup is straightforward, but the surrounding decisions matter: platform compatibility with the broker, server location, operating system, available resources, remote-access security, and the way MetaTrader is closed or left running.

MetaTrader on a VPS: the setup at a glance

Decision Recommended option When to choose something else
Operating system Windows VPS for native installation and maximum compatibility Linux with Wine if lower cost matters and you are prepared to troubleshoot compatibility
MetaTrader version The version supported by your broker Do not choose MT4 or MT5 only by feature list; broker availability comes first
Starting resources 2 vCPU, 4 GB RAM, SSD or NVMe storage for a comfortable basic setup Increase resources for several terminals, many charts, several EAs, or long optimization runs
Server location A data center close to the broker’s trade server Your own location matters less than the network path between the VPS and the broker
Remote access RDP for Windows; SSH plus a desktop or Wine setup for Linux Restrict remote access instead of leaving management ports open to the entire internet

What a MetaTrader VPS does

A virtual private server is a remote computer with its own operating system, allocated CPU and memory, storage, and a public network connection. You administer it over the internet and install software on it just as you would on a local machine.

For MetaTrader, the main purpose of a VPS is continuity. The terminal keeps running when:

  • your laptop is switched off or sleeping;
  • your home internet connection is unavailable;
  • you travel or change devices;
  • an Expert Advisor needs to manage positions outside your working hours;
  • a copy-trading or signal service must remain connected continuously;
  • a backtest or optimization needs to run for several hours.

A VPS may also reduce latency when it is located closer to the broker’s infrastructure. The useful measurement is the connection between the VPS and the broker’s trade server, not the distance between the VPS and your home.

Before ordering a server: check the broker and platform

Confirm whether the broker supports MT4 or MT5

MetaTrader 4 and MetaTrader 5 are separate platforms. MT4 remains widely used because of its large Expert Advisor and indicator ecosystem. MT5 is newer and supports a broader set of markets, order types, and platform capabilities.

The right choice is the version your broker supports for your account. Download the installer from the broker’s website whenever possible. Broker-specific builds may already contain the correct trading-server list and reduce the chance of choosing the wrong connection endpoint.

US traders should verify account rules first

Retail forex accounts in the United States operate under CFTC and NFA requirements. These rules can affect how a strategy behaves even though they do not change the technical VPS installation.

Before deploying an Expert Advisor, confirm with the broker:

  • whether the account supports MT4, MT5, or both;
  • which server name must be selected during login;
  • whether the strategy is compatible with FIFO requirements;
  • whether the account permits the intended position-management logic;
  • which leverage and instrument restrictions apply.

A VPS cannot make an unsupported strategy compatible with a broker’s account rules. It only keeps the terminal running. This material covers infrastructure setup and is not investment advice.

How many resources does MetaTrader need?

A single MetaTrader terminal is not especially demanding. Resource usage grows with the number of open charts, indicators, Expert Advisors, terminal instances, and optimization jobs.

Workload Reasonable starting point What increases load
One terminal, manual monitoring 1–2 vCPU, 2–4 GB RAM Many charts, indicators, and long history
One terminal with several EAs 2 vCPU, 4 GB RAM Frequent calculations, DLL use, and multiple symbols
Several MetaTrader instances 2–4 vCPU, 4–8 GB RAM Separate accounts, many charts, and simultaneous EAs
Backtesting and optimization 4 vCPU or more, 8 GB RAM or more Parallel passes, long historical periods, and large parameter sets

Use SSD or NVMe storage and leave free disk space for terminal logs, price history, reports, Windows updates, and backups. A server that is technically able to launch MetaTrader may still become unstable if memory or disk space is exhausted.

Windows or Linux: which VPS should you choose?

Windows is the default recommendation. MetaTrader is a native Windows application, so the installation is direct and Expert Advisors, indicators, DLL integrations, and interface elements are most likely to behave as their developers intended.

Linux is a workable alternative through Wine. It removes the Windows licensing component, but adds a compatibility layer and more administration. Some EAs—especially those relying on DLL calls or nonstandard interface elements—may require additional testing.

Criterion Windows VPS Linux VPS with Wine
Installation Native installer Wine and desktop environment may be required
Compatibility Best option for EAs, indicators, and DLLs Usually works, but every EA should be tested
Administration RDP and familiar Windows tools Requires Linux and Wine troubleshooting skills
Cost structure Usually includes a Windows license No Windows license component
Best for Beginners and production EA workloads Technical users prepared to validate compatibility

How to install MetaTrader on a Windows VPS

A Windows VPS with the operating-system license included is the simplest starting point for MT4 or MT5.

Step 1. Create the VPS

Select a Windows configuration with sufficient CPU, RAM, and storage. Choose a data-center location based on the broker’s infrastructure where possible. After deployment, save the server IP address, administrator username, and password in a secure place.

Step 2. Connect through Remote Desktop

On Windows, open Remote Desktop Connection. On macOS or Linux, use an RDP client. Enter the VPS IP address and administrator credentials.

After the desktop opens, do not treat the server as a disposable browser session. It is now the machine on which MetaTrader, EAs, logs, and account profiles will remain.

Step 3. Update Windows and secure access

Install pending security updates before configuring the trading terminal. Use a strong, unique administrator password and restrict RDP access to trusted IP addresses when the provider or firewall configuration allows it.

Do not expose RDP to the entire internet without protection. Public Windows servers are scanned automatically, and port 3389 is a common target for password attacks.

Step 4. Download the broker’s MetaTrader installer

Open the broker’s official website inside the VPS session and download the supported MT4 or MT5 build. A broker-specific installer is preferable to a generic download because it may include the correct trading-server list.

Step 5. Install the terminal

Run the installer and complete the wizard. The default installation path is sufficient for one terminal. If you plan to run several separate accounts, use separate installation directories and clear names for each instance.

Step 6. Log in to the trading account

Enter the account number, password, and exact broker server. A correct password is not enough if the wrong server is selected. Confirm that the connection indicator shows an active data stream and that quotes are updating.

Step 7. Transfer indicators and Expert Advisors

Open the MetaTrader data directory and copy the required files into the appropriate folders:

  • MQL4\Experts or MQL5\Experts for Expert Advisors;
  • MQL4\Indicators or MQL5\Indicators for custom indicators;
  • the corresponding library or script folders when the package includes additional components.

Restart MetaTrader or refresh the Navigator panel after copying the files.

Step 8. Enable automated trading

Automated trading must be allowed both globally and in the EA settings. Attach the EA to the correct chart, confirm the symbol and timeframe, review its parameters, and check that the terminal displays the expected active status.

An attached EA is not necessarily an active EA. If algorithmic trading is disabled, the script can appear on the chart without executing its logic.

Step 9. Configure automatic startup

Add a MetaTrader shortcut to the Windows Startup folder so that the terminal relaunches after a planned or unexpected server restart. If several instances are used, add each required shortcut and verify that every terminal opens with the correct account and charts.

Step 10. Disconnect without closing the session

Close the RDP window or choose Disconnect. Do not use Sign Out or Log Off if MetaTrader must continue running, because signing out closes applications in the session.

How to run MetaTrader on a Linux VPS with Wine

A Linux VPS can run MetaTrader through Wine. This path is better suited to users who already administer Linux and can test the exact EA and indicator set before relying on it.

Step 1. Deploy a supported Linux distribution

Use a distribution supported by the installation method you plan to follow. MetaTrader documentation describes Wine-based installation for common distributions such as Ubuntu, Debian, Linux Mint, and Fedora.

Step 2. Update the operating system

Connect over SSH and install available updates. Create a non-root administrative user for routine work instead of running the desktop and terminal permanently as root.

Step 3. Install a desktop environment and remote-access method

MetaTrader is a graphical application. A minimal server installation therefore needs a desktop environment and a secure way to access it, such as an RDP-compatible service, VNC protected by a tunnel, or another controlled remote-desktop configuration.

Step 4. Install Wine and its dependencies

Use the distribution’s package manager or the installation method provided by MetaTrader. The exact commands depend on the operating-system version and repository configuration.

Step 5. Run the broker’s installer through Wine

Download the MT4 or MT5 installer from the broker and launch it using Wine. Complete the setup, open the terminal, and log in to the correct broker server.

Step 6. Test every EA and integration

Do not assume that an EA that starts under Wine is fully compatible. Test:

  • DLL dependencies;
  • file access;
  • network requests;
  • custom indicators;
  • terminal restart behavior;
  • order-management logic in a safe test environment.

Step 7. Configure automatic launch and monitoring

Use the Linux session’s startup configuration or a controlled service wrapper to relaunch the desktop session and Wine application after a reboot. Confirm the result with an actual restart before relying on it.

Post-installation checklist

Installation is only complete when the terminal survives the conditions it is supposed to protect against.

  • Quotes update: confirm an active connection to the intended broker server.
  • Correct account: verify account number, server, and trading environment.
  • EA status: confirm that automated trading is enabled globally and for each EA.
  • Charts are loaded: check symbols, timeframes, templates, and parameters.
  • Auto-start works: restart the VPS and confirm that MetaTrader relaunches.
  • Remote disconnect works: disconnect and reconnect without signing out.
  • Logs are clean: review the Experts and Journal tabs for repeated errors.
  • Disk has free space: monitor logs, price history, updates, and reports.
  • Backups exist: keep copies of EAs, indicators, presets, and configuration files outside the VPS.
  • Access is restricted: protect RDP, SSH, VNC, and administrative accounts.

When a MetaTrader VPS is actually useful

Expert Advisors that run continuously

An EA can only react while the terminal is connected and active. A VPS removes dependence on the trader’s home computer and internet connection.

Copy trading and signal subscriptions

The receiving terminal must be online when the source sends an action. A disconnected terminal can miss an event rather than merely delay a notification.

Several accounts or broker terminals

A VPS can run several separate MetaTrader installations, provided there is enough memory and CPU capacity. Separate directories and clear shortcut names reduce the risk of logging into or modifying the wrong instance.

Long backtests and optimization

Strategy Tester workloads can use significant CPU time. Running them on a VPS frees the local computer and allows the process to continue unattended. Keep optimization workloads separate from latency-sensitive live terminals when possible.

Prop-firm or rule-based trading environments

A VPS can reduce infrastructure interruptions, but it does not override account or program rules. Confirm whether VPS use is allowed and whether the provider expects a stable IP address or specific login behavior.

Common setup mistakes and how to avoid them

Problem Why it happens What to do
The EA is visible but does nothing Automated trading is disabled globally or in the EA properties Enable both settings and check the Experts log
MetaTrader stops overnight The user signed out of Windows instead of disconnecting Use Disconnect and configure automatic startup
The terminal cannot connect Wrong broker server, incorrect build, credentials, or network restriction Use the broker installer and verify the exact server name
RDP receives repeated login attempts Management access is exposed publicly Restrict source IPs, use strong credentials, and apply firewall rules
Latency is higher than expected The VPS was chosen near the trader instead of near the broker server Compare network latency from candidate locations to the broker endpoint
Wine setup behaves differently The EA or indicator depends on Windows-specific components Test dependencies or move the workload to Windows
The server becomes slow Too many terminals, charts, EAs, logs, or optimization jobs Monitor CPU, RAM, and disk; increase resources or separate workloads

Conclusion

For most users, the clearest route is a Windows VPS, a broker-specific MetaTrader installer, a server location close to the broker infrastructure, and enough resources for the actual number of terminals and EAs. Windows provides the most predictable compatibility and the simplest remote-desktop workflow.

Linux with Wine is a valid alternative for technically experienced users, but it should be treated as a compatibility deployment that requires testing—not as an identical replacement for native Windows.

The most important step is not clicking through the installer. It is validating the entire operating cycle: the correct account connects, the EA is active, MetaTrader starts after a reboot, the terminal continues running after remote disconnection, access is protected, and configuration files are backed up.

Frequently Asked Questions

Which VPS is better for MetaTrader: Windows or Linux?

Windows is the safer default because MetaTrader runs natively and offers the best compatibility with Expert Advisors, indicators, and DLL-based integrations. Linux with Wine can reduce the operating-system cost but requires more administration and compatibility testing.

How much RAM does MetaTrader need on a VPS?

One terminal can run with 2 GB of RAM, but 4 GB is a more comfortable starting point. Several terminals, many charts, multiple Expert Advisors, or backtesting may require 8 GB or more.

Should the VPS be close to me or to my broker?

The VPS should be selected based on latency to the broker’s trade server. Its distance from your own location mainly affects the responsiveness of the remote desktop, not the order path between MetaTrader and the broker.

Will MetaTrader keep running after I close Remote Desktop?

Yes, if you disconnect from the RDP session. Signing out or logging off closes applications in that session, including MetaTrader.

Why is my Expert Advisor attached but not trading?

Automated trading may be disabled in the global terminal settings or in the EA properties. The EA may also be reporting an error in the Experts or Journal log, using the wrong symbol, or waiting for its configured conditions.

Can several MetaTrader accounts run on one VPS?

Yes. Install separate terminal instances in separate directories and make sure the VPS has enough CPU, RAM, and disk space. Label shortcuts clearly to avoid confusing accounts.

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.