When an EA stops over the weekend, it is usually one of four things: it is not stopped at all and is waiting for the first tick after the market reopens; the broker did maintenance and the terminal did not log back in; Windows restarted and the terminal did not start again, or started without AutoTrading; or MetaTrader downloaded an update and installed it at a restart. The Journal, the Experts log and the Windows System log, read by time from Friday's close to now, tell you which one. Then you set the chain up so that the next weekend fixes itself.
What a weekend does to a running EA
| Weekend event | What it does to the EA | What it leaves in the logs |
|---|---|---|
| Market closed | No new prices arrive, and the new-tick event is generated only when a new tick is received, so an EA that acts on each tick does nothing. One that runs on a timer keeps running | Nothing unusual; the Experts log is quiet |
| Broker server maintenance | The connection drops and the terminal tries to log in again. Many brokers do maintenance while the markets are closed over the weekend | Journal: connection lost, login attempts, then a successful login or repeated failures |
| Windows restart (updates, you, or a restart from the provider's panel) | Windows closes the running programs, MetaTrader included. The terminal returns only if the VPS signs in by itself and a startup shortcut launches it | A gap in the Journal, then the lines of a fresh start; restart events in Event Viewer |
| MetaTrader update | The terminal downloads a new build when it connects to the server and installs it when it restarts. MetaQuotes says the system cannot be deactivated in MT5 and cannot be disabled in MT4 | Update lines in the Journal (MT4 writes "LiveUpdate: finished"), then a terminal start |
| Account moved or login changed by the broker | The terminal connects but the login is refused | Repeated failed logins; Invalid account in the status bar |
First check: stopped, or waiting for the market
Before reading any log, open the terminal and look at four things:
- Prices. Are the quotes in Market Watch moving? If not, the market of that symbol may still be closed. Right-click the symbol in Market Watch and choose Specification: the lower part shows its quoting and trading sessions for every day of the week.
- Connection. The indicator in the bottom-right corner shows whether the terminal is logged in. No connection or Invalid account means the problem is the login, covered in MT4 invalid account or no connection.
- AutoTrading. The AutoTrading button (Algo Trading in MT5) must be on. If it is off, see MT5 algo trading disabled.
- The EA on the chart. The EA's name and status icon must be in the top-right corner of its chart.
If the terminal is not open at all, or opened only when you connected, Windows restarted and nothing brought it back: skip to the Event Viewer step below, then to the autostart section. If everything looks right but the EA still does not trade once prices move, the cause is inside the EA or its settings, not the weekend: see EA not trading on a VPS.
Read the logs from Friday close to now
Each tab only shows its latest entries. The full history is in daily files named by date (YYYYMMDD.log), so you can read Friday, Saturday and Sunday separately.
- Open the Journal files. In the Journal tab (Terminal window in MT4, Toolbox in MT5), right-click and choose Open. The folder with the log files opens and the current entries are saved to them (MT4 help, MT5 help).
- Open the Experts files. Do the same in the Experts tab. These files are in
MQL4\Logs(MT4) orMQL5\Logs(MT5) and record what the EAs did and printed, including opened and closed positions. - Narrow it down. Choose Viewer in the same menu: it filters by time range and shows Full or Errors only, and MT5 also has a No connection filter. Set the range from Friday afternoon to now.
- Find the last normal line and the first line after it. Write down both times.
- Check whether Windows restarted. Open Event Viewer (type
eventvwrin the Start menu), go to Windows Logs, right-click System, choose Filter Current Log and enter41, 1074, 6006, 6008. Microsoft gives the meaning: 1074 is a shutdown or restart started by an application or by a user, 6006 a clean shutdown, 41 and 6008 a shutdown that was not clean.
Event Viewer follows the VPS clock, and Microsoft notes that you should check the time zone of the server. Chart times are the broker's server time, which can differ from it, so do not match Event Viewer times against candles.
What you find tells you what happened:
| In the logs | What happened | What to do |
|---|---|---|
| Connection lost, login attempts, then a login that works | Broker maintenance, and the terminal came back by itself | Nothing. If the EA still does nothing, look at the Experts log after the reconnection |
| Connection lost, then failed logins that never stop | Broker maintenance ended with your login refused, or the server name changed | Check the account details the broker shows today; see MT4 keeps disconnecting on a VPS |
| A gap, an event 1074, then a terminal start | A restart started by a program or a person, and autostart worked | Check AutoTrading and the EAs; plan the next update for a time you choose |
| A gap, an event 1074, no terminal start until you connected | A restart started by a program or a person, and autostart did not work | Fix automatic logon and the startup shortcut (next section) |
| A gap, an event 41 or 6008 | The VPS stopped without a clean shutdown | If nobody with access stopped it, send the times to your provider |
| Update lines, then a terminal start | MetaTrader installed a new build | Check that each EA loaded again without errors in the Experts log |
| Experts log shows the EA removed and not loaded again | The terminal reopened with a different profile, or the EA was taken off the chart | Load the saved profile or attach the EA again; check its inputs |
Make the setup come back by itself
The weekend will bring maintenance and restarts again. A restart costs you nothing if the chain below works without you:
- Windows signs in by itself after a reboot (automatic logon). Without it the VPS waits at the sign-in screen and nothing starts.
- Each terminal has a shortcut where Windows starts it at sign-in.
- Each terminal saves its account login, so it reconnects without asking for a password.
- The EAs are on the charts the terminal opens with, and AutoTrading is on. Check it after a test restart: in the Expert Advisors options, MetaTrader 4 can disable AutoTrading when the account or the profile has been changed.
- You leave the VPS by closing the Remote Desktop window, not by signing out. Signing out closes MetaTrader; see keep MT4 running after closing Remote Desktop.
The full procedure, with a deliberate test restart, is in autostart MT4 and MT5 after a VPS reboot. The video below was recorded on a Dipgate Trading VPS (Windows).

To keep Windows Update from choosing the moment, set when it installs and restarts: Windows updates on a trading VPS. Then ask the EA vendor one question: what the EA does with its own state (a grid level, a counter, a daily limit) after the terminal restarts. Open trades stay on the broker's server; the EA's memory of them depends on how it was written.
When the weekend is not the cause
- The EA also stops in the middle of the week. Look for a frozen terminal or a VPS out of memory: VPS stuck or unresponsive and why a trading VPS gets slow.
- The EA waits on purpose at Monday's open. Some EAs have a spread filter, a session filter or a news filter in their inputs. The Experts log shows the EA's own messages; the inputs and the manual show the rule.
- Terminals of different brokers lost the connection at the same moments, with no restart. That points to the VPS or its network, not to one broker's maintenance.
How this works on Dipgate
- Trading VPS (Windows): Dipgate sets up the autologin on the VPS. To have a platform start after a reboot, move its shortcut into the "My Platforms Autostart" folder. If you change the VPS password, run Autologon again with the new password, as the knowledge-base article explains.
- Dipgate's resource-monitoring article suggests rebooting the VPS over the weekend to free up RAM. If you follow it, note the time, so the restart is not a mystery when you read Event Viewer later, and check on Monday that every terminal came back.
- From the client area you can start and stop the Trading VPS, and the "VNC Console and Backups" panel is there too. If you stop or start the VPS from there, note the time as well.
- Metatrader In Cloud: the automatic logon and startup steps above are for a Windows VPS. On Metatrader In Cloud, if the MetaTrader is not running, start or restart it from the service page in the client area (Services, My Services).
- If the logs show restarts that nobody asked for, open a support ticket with the times from the Journal and Event Viewer.
