TroubleshootingUpdated 27 November 20267 min read

A trading VPS that hangs: what to try first and what last, from a VNC look to a forced stop and a reinstall, and what happens to open trades and EAs meanwhile.

In short
  • Work from the least disruptive action to the most: rule out your own connection, look at the screen through the VNC console, fix the problem inside Windows, restart Windows from inside, only then stop and start the VPS from the client area. A reinstall comes last.
  • Open positions, their Stop Loss and Take Profit, and pending orders stay on the broker's server while the VPS is down. The EAs and the MetaTrader trailing stop do not work until the terminal runs again.
  • Before a forced stop or a reinstall, check your open trades from the MetaTrader app on your phone.
  • A forced stop may not let Windows or MetaTrader close cleanly. A reinstall puts a fresh system on the VPS: copy your files off first if you still can.
  • After the VPS is back, check that every terminal started by itself, is connected and has AutoTrading on.

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.

Six steps from ruling out your side to a reinstall, each more disruptive than the one before
Stop at the first step that solves it.

Find out what kind of stuck it is

"Stuck" covers different problems. The symptom tells you which step to start from.

What you seeWhat it usually meansStart at
Remote Desktop does not connect at all, or drops straight awayYour connection, your Remote Desktop app, or the VPS is downStep 1
Remote Desktop connects, but the screen is black or frozenWindows is busy, frozen or installing updatesStep 2
The desktop answers, but MetaTrader is frozen or shows Not RespondingOne terminal or one process is the problem, not the VPSStep 3
Everything works, only slowlyLoad on CPU, memory or diskWhy a trading VPS gets slow
MetaTrader runs but shows No connectionThe link to the broker, not the VPSMT4 keeps disconnecting on a VPS

What happens to your trades while the VPS is stuck

ItemWhere it livesWhile the terminal is stuck or off
Open positionsBroker's serverStay open
Stop Loss and Take ProfitBroker's serverKeep working
Pending ordersBroker's serverKeep working
Trailing stop of MT4 or MT5The terminalStops moving; only the last Stop Loss it set can trigger (MT4 help, MT5 help)
The EA, and any stops or targets it keeps hiddenThe terminalDo 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

  1. Try the connection from another network (a phone hotspot, for example) or another device.
  2. Turn off a VPN if you use one, and restart your router if other sites are slow too.
  3. 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 showsWhat to do
Windows installing updates, with a progress messageWait. Do not stop the VPS while it works. See Windows updates on a trading VPS to move them to the weekend
The sign-in screenWindows restarted and did not sign in by itself. Sign in, then fix the autologon (see After the VPS is back)
A normal desktop that answersThe VPS is fine; the problem is Remote Desktop. Check the Experts tab of each terminal from here
A desktop that answers very slowlyGo to Step 3 and find the process at the top
A frozen picture, no reaction to the mouse after a few minutesGo to Step 5
An error screen or a black screenGo to Step 5

Step 3: fix the problem inside Windows

  1. In the console or in Remote Desktop, right-click the taskbar of the VPS and open Task Manager.
  2. In the Processes tab, sort by CPU, then by Memory. A MetaTrader terminal is terminal.exe (MT4) or terminal64.exe (MT5).
  3. 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.
  4. If something else is at the top (a browser, a Strategy Tester run, a Windows update), close it or let the update finish.
  5. 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.

  1. Close each terminal with File, Exit, so it saves its profile.
  2. Restart from the Start menu, Power, Restart, or type shutdown /r /t 0 in a Command Prompt (shutdown reference).
  3. 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.

  1. Check your open trades from the phone, as above.
  2. Note the time, so you do not mistake this stop for a fault when you read Event Viewer later.
  3. In your provider's client area, stop the VPS, then start it again.
  4. 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.

  1. Only reinstall when Steps 1 to 5 have failed and support cannot find the cause.
  2. If you can still reach the files, copy each terminal's data folder (File, Open Data Folder) to your own computer first: the MQL4 or MQL5 folder with your EAs and set files, and the profiles folder.
  3. 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

  1. Every terminal on your list is open, without you having started it. If not, see MT4 not starting after a VPS reboot.
  2. The connection indicator in the bottom-right corner is active and the account is right.
  3. AutoTrading (Algo Trading in MT5) is on, each EA is on its chart, and the Experts tab shows no errors.
  4. Open positions and pending orders match what you saw on the phone.
  5. 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.
  6. 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.

FAQ

Will my trades close if my VPS freezes?

No. Open positions stay on the broker's server, and so do their Stop Loss, Take Profit and pending orders. What stops is the EA, and the MetaTrader trailing stop, which works in the terminal.

Is stopping the VPS from the control panel the same as restarting Windows?

Not quite. A restart from inside Windows lets programs close and save. A stop from outside can work like cutting the power, so MetaTrader does not get the chance to save, and Windows may log the shutdown as unexpected.

The VNC console shows Windows working on updates. What should I do?

Wait for it to finish. Stopping a VPS while it installs updates can damage the system. If the screen does not change for a long time, contact your provider before you stop it.

Remote Desktop does not connect, but the VNC console shows a normal desktop. What does that mean?

The VPS is running, and the problem is in the Remote Desktop connection, from your side or from the VPS's network settings. Your EAs may still be trading: check the Experts tab of each terminal through the console.

Should I reinstall the VPS to fix a freeze?

Only when the other steps fail and your provider cannot find the cause. A reinstall gives you a clean system, but you then install the terminals, EAs and settings again.