VPS
How to run a Forex Expert Advisor on a VPS server
A VPS keeps your MetaTrader terminal and Expert Advisor running 24/7. Here is how to deploy and launch an EA on a VPS, step by step.

If you can't keep a computer with the terminal switched on all the time, a VPS server is the better option. It lets your Expert Advisor run without interruption, 24/7, independent of your home connection or power. To launch a Forex Expert Advisor on a VPS, follow the steps below.
- Get access to a VPS. You need a VPS running Windows or Linux. Providers usually give you remote access through Remote Desktop (Windows) or SSH (Linux).
- Install the trading platform. Download and install the platform your Expert Advisor is built for — most commonly MetaTrader 4 (MT4) or MetaTrader 5 (MT5). Make sure you have your account login details.
- Transfer the EA files. Copy the Expert Advisor files (for example
.ex4/.mq4, or.ex5/.mq5) onto the VPS. You can use the remote session's clipboard or an FTP client to move the files. - Start the platform. Launch the terminal on the VPS through your remote connection, enter your credentials and connect to your trading account.
- Install the Expert Advisor. In the platform choose File → Open Data Folder, open the
MQL4/Experts(orMQL5/Experts) folder and copy the EA files there. Restart the platform, then find the advisor under Navigator → Expert Advisors. - Configure the parameters. Open the EA's settings and set the values it needs — lot size, stop-loss and take-profit levels, timeframe and any other inputs your strategy requires.
- Enable trading. Attach the advisor to a chart and switch on Algo Trading (AutoTrading). The EA will now run automatically and place trades according to your settings.
Setup can differ slightly depending on the specific VPS and platform. If in doubt, check the documentation or contact the support of your VPS provider or the Expert Advisor's developer.
Where to get a VPS
There are many VPS providers to choose from. Pick one with a location close to your broker's servers to keep latency low, and start with a small plan — an EA and a single terminal don't need much CPU or RAM. Many brokers also offer a hosted VPS directly from inside MetaTrader, which is the simplest option if you trade a single account.