When a VPS is stuck, try the actions in order from the least disruptive to the most: first make sure the problem is not your own connection, then look at the VPS screen through the provider's VNC console, fix what you see inside Windows, restart Windows from inside, and only then force a stop and start from the client area. A reinstall is the last step. The freeze does not close your open trades: positions, Stop Loss, Take Profit and pending orders sit on the broker's server. What stops is everything the terminal does: the EAs and the trailing stop.
Find out what kind of stuck it is
"Stuck" covers different problems. The symptom tells you which step to start from.
| What you see | What it usually means | Start at |
|---|---|---|
| Remote Desktop does not connect at all, or drops straight away | Your connection, your Remote Desktop app, or the VPS is down | Step 1 |
| Remote Desktop connects, but the screen is black or frozen | Windows is busy, frozen or installing updates | Step 2 |
| The desktop answers, but MetaTrader is frozen or shows Not Responding | One terminal or one process is the problem, not the VPS | Step 3 |
| Everything works, only slowly | Load on CPU, memory or disk | Why a trading VPS gets slow |
| MetaTrader runs but shows No connection | The link to the broker, not the VPS | MT4 keeps disconnecting on a VPS |
What happens to your trades while the VPS is stuck
| Item | Where it lives | While the terminal is stuck or off |
|---|---|---|
| Open positions | Broker's server | Stay open |
| Stop Loss and Take Profit | Broker's server | Keep working |
| Pending orders | Broker's server | Keep working |
| Trailing stop of MT4 or MT5 | The terminal | Stops moving; only the last Stop Loss it set can trigger (MT4 help, MT5 help) |
| The EA, and any stops or targets it keeps hidden | The terminal | Do nothing until the terminal runs again |
So before a forced stop, open the MetaTrader app on your phone, log in to the account and look at what is open. You can close or protect a position from there if it matters. Do not leave the phone trading at the same time as an EA once the VPS is back, or the two can act on the same position.
Step 1: rule out your own side
- Try the connection from another network (a phone hotspot, for example) or another device.
- Turn off a VPN if you use one, and restart your router if other sites are slow too.
- Use a current version of Microsoft's Remote Desktop app. Old clients cause problems of their own.
If the VPS answers from elsewhere, the VPS is not stuck. The guide on Remote Desktop that cannot connect covers this case.
Step 2: look at the screen through the VNC console
The VNC console of your provider shows the VPS screen as if a monitor were attached, without Remote Desktop. Looking changes nothing on the VPS, so do it before any restart.
| What the console shows | What to do |
|---|---|
| Windows installing updates, with a progress message | Wait. Do not stop the VPS while it works. See Windows updates on a trading VPS to move them to the weekend |
| The sign-in screen | Windows restarted and did not sign in by itself. Sign in, then fix the autologon (see After the VPS is back) |
| A normal desktop that answers | The VPS is fine; the problem is Remote Desktop. Check the Experts tab of each terminal from here |
| A desktop that answers very slowly | Go to Step 3 and find the process at the top |
| A frozen picture, no reaction to the mouse after a few minutes | Go to Step 5 |
| An error screen or a black screen | Go to Step 5 |
Step 3: fix the problem inside Windows
- In the console or in Remote Desktop, right-click the taskbar of the VPS and open Task Manager.
- In the Processes tab, sort by CPU, then by Memory. A MetaTrader terminal is
terminal.exe(MT4) orterminal64.exe(MT5). - If one terminal is frozen, try to close it normally first. Only if it does not react, select it and choose End task. Ending a task does not let the terminal save its latest chart changes.
- If something else is at the top (a browser, a Strategy Tester run, a Windows update), close it or let the update finish.
- Start the terminal again from its shortcut and check that it connects, that AutoTrading is on and that the EAs are on their charts.
If memory or CPU is full again within hours, the cause is load, not a one-off freeze: why a trading VPS gets slow goes through it.
Step 4: restart Windows from inside
When Windows answers but is sluggish all over, a clean restart is the next step.
- Close each terminal with File, Exit, so it saves its profile.
- Restart from the Start menu, Power, Restart, or type
shutdown /r /t 0in a Command Prompt (shutdown reference). - Wait a few minutes before you reconnect, then go to After the VPS is back.
A restart from inside lets programs close and save first, which a forced stop from outside does not.
Step 5: stop, then start, from the client area
Use this when Windows no longer reacts, in the console or in Remote Desktop.
- Check your open trades from the phone, as above.
- Note the time, so you do not mistake this stop for a fault when you read Event Viewer later.
- In your provider's client area, stop the VPS, then start it again.
- Watch the start in the VNC console. Windows may show a message about an unexpected shutdown: that is the forced stop.
A stop from outside can work like pulling the power. MetaTrader does not get the chance to save, and Windows can record the shutdown as unexpected (event 41 or 6008).
Step 6: reinstall, the last resort
A reinstall puts a fresh operating system on the VPS. Assume that nothing on it is kept: terminals, EAs, set files, profiles and the autostart setup.
- Only reinstall when Steps 1 to 5 have failed and support cannot find the cause.
- If you can still reach the files, copy each terminal's data folder (File, Open Data Folder) to your own computer first: the
MQL4orMQL5folder with your EAs and set files, and theprofilesfolder. - After the reinstall, install your broker's terminals again, copy the files back, log in and set up the autostart.
After the VPS is back
- Every terminal on your list is open, without you having started it. If not, see MT4 not starting after a VPS reboot.
- The connection indicator in the bottom-right corner is active and the account is right.
- AutoTrading (Algo Trading in MT5) is on, each EA is on its chart, and the Experts tab shows no errors.
- Open positions and pending orders match what you saw on the phone.
- What the EA does with its own state after a restart (grid levels, counters, daily limits) depends on how it was written. If in doubt, ask the vendor.
- Leave by closing the Remote Desktop window, not by signing out.
When this page is not the answer
- The VPS freezes again and again. Each restart fixes the symptom, not the cause. Find the load with why a trading VPS gets slow, or open a ticket with the times.
- Only one broker drops. That is the network or the broker. Go to MT4 keeps disconnecting on a VPS.
- You run Metatrader In Cloud. This page is about a Windows VPS you manage yourself. On Metatrader In Cloud you start, stop, restart or reinstall the MetaTrader from its service page in the client area.
How this works on Dipgate
- For a Trading VPS, the client area has start and stop for the VPS, a password change, the VNC Console and Backups panel and an operating-system reinstall. These are the tools for Steps 2, 5 and 6.
- If you change the VPS password from the client area, redo the autologin afterwards, or the terminals will not start by themselves after the next restart.
- Autologin is set up on a Trading VPS. Platforms whose shortcut is in the My Platforms Autostart folder start again after a restart.
- Dipgate's knowledge-base article Resolving Issues with a Stuck VPS lists four causes: heavy stress on the VPS; full memory; CPU, RAM or disk overload; your local connection or an old Remote Desktop client. It suggests a restart first, then deleting history data, monitoring resources, checking your router or VPN and trying the newer Microsoft Remote Desktop app. If none of that helps, open a support ticket with the times of the freeze.
