A Windows VPS runs Expert Advisors with less CPU and RAM when each MetaTrader terminal only does what the EA needs: fewer bars loaded, only the charts the EA trades on, a short Market Watch, no news and no sounds. After that, trim Windows (visual effects, power plan, update reboots, background programs) and keep two habits: no optimisations on the live VPS, and disconnect rather than sign out.
Below is the checklist, in the order that gives the most back for the least risk, with what each change costs you.
The checklist at a glance
| # | Where | Change | What it saves or prevents |
|---|---|---|---|
| 1 | MetaTrader | Lower max bars in chart (and in history on MT4) | RAM and CPU per chart, disk per symbol |
| 2 | MetaTrader | Close charts the EA does not trade on, remove decorative indicators | CPU on every tick |
| 3 | MetaTrader | Hide unused Market Watch symbols | Quote traffic and processing |
| 4 | MetaTrader | Turn off news and event sounds | Background downloads and noise |
| 5 | MetaTrader | One profile per purpose | Stray analysis charts in the live terminal |
| 6 | Windows | Visual effects set for best performance | Desktop rendering in your remote session |
| 7 | Windows | Choose when updates reboot the VPS | A restart in the middle of the trading week |
| 8 | Windows | High performance power plan | Power-saving behaviour inside Windows (a small gain on a virtual server) |
| 9 | Windows | No browser left open | RAM and CPU taken from the terminals |
| 10 | Windows | Antivirus exclusion for the terminal folder, if you run an antivirus | Scans of files MetaTrader rewrites all day |
| 11 | Habits | No optimisations or heavy backtests on the live VPS | CPU starvation of live EAs |
| 12 | Habits | Close the remote desktop window, do not sign out | Terminals closed by accident |
MetaTrader settings
These apply per terminal. If you run several terminals, repeat them in each one.
1. Lower the number of bars
Every chart loads its bars into memory, and every indicator on it is calculated over those bars. MetaTrader's own help says the number of bars shown is limited by computer resources and that many indicators can quickly exhaust CPU and free RAM.
- MetaTrader 4: open Tools > Options > Charts. "Max bars in history" sets how many bars are stored on disk, "Max bars in chart" how many are loaded into a chart. When stored history goes over the limit, MT4 deletes the oldest bars as it saves.
- MetaTrader 5: open Tools > Options > Charts and lower "Max. bars in chart". MT5 accepts a minimum of 5000 and applies the change after a restart.
How low to go depends on the EA. An EA that reads a 200-period moving average on H4 needs at least 200 H4 bars plus a margin; a grid EA that only looks at the last few candles needs far fewer. Check the EA's documentation, set a value with room above what it needs, restart the terminal and watch the first trades. Dipgate's knowledge base article on optimising MetaTrader on a VPS covers the same terminal settings: max bars, news and sounds, unused symbols and charts, and a terminal restart.
2. Close charts the EA does not trade on
Keep one chart per EA instance and close everything else: the charts MetaTrader opens by default at install, old analysis charts, duplicates. Remove indicators you added only to look at; an EA normally calculates the indicator values it uses on its own, without them being drawn on the chart. The exception is an EA whose manual says it reads an indicator or objects drawn on its chart: leave those in place.
3. Hide unused Market Watch symbols
Each symbol in Market Watch receives and processes quotes. Right-click inside Market Watch and use the option to hide all symbols. A symbol with an open chart, an open position or a pending order stays in the list, as MetaTrader 5's help explains. Then add back only the symbols your EAs need. On MT5, also leave unused MQL5 services switched off, which MetaQuotes itself suggests to save resources.
4. Turn off news and sounds
- In Tools > Options > Server, untick Enable news. The EA does not read the terminal's news feed unless its manual says so.
- In Tools > Options > Events, untick the master switch (Enable in MT4, Allow in MT5). Sounds on a VPS play to an empty room.
5. One profile per purpose
A profile is the saved set of open charts (File > Profiles). Keep a "live" profile with only the EA charts in the terminal that trades. Do analysis in a separate terminal, or on your own computer. On MT5, check the option "Disable automated trading when switching profiles" under the Expert Advisors tab: if it is ticked, switching profile stops the EAs from trading, so do not switch profiles in the live terminal.
Finally, restart each terminal from time to time, for example at the weekend. A terminal that has run for weeks with charts opened and closed releases memory when it restarts.
Windows settings
6. Visual effects for best performance
Open the Run box (Win+R), type SystemPropertiesPerformance.exe and press Enter. On the Visual Effects tab choose Adjust for best performance and click OK. Fonts look a little plainer; the terminals do not care. On the remote desktop side, a lower display resolution in your client also means less to draw.
7. Decide when updates restart the VPS
An update that restarts Windows on a Tuesday afternoon closes your terminals until they start again. Two parts to this:
- Timing. Find out whether updates install automatically on your VPS (open Windows Update in Settings). If they do, set the active hours to cover the hours you trade most, so Windows avoids restarting then. Active hours cannot cover the whole week, so the reliable habit is to install pending updates yourself at the weekend, when the forex market is closed.
- Recovery. Make sure each terminal starts again on its own after a reboot. That needs automatic sign-in plus a startup shortcut for each platform: see autostarting MT4 and MT5 after a VPS reboot.
Turning updates off entirely and never installing them is not an optimisation: security updates still matter on a machine that holds your broker logins.
8. High performance power plan
Windows' Balanced plan lets Windows trade processor performance for lower power use. On a virtual server the host machine controls most of the real processor behaviour, so expect a small gain at most, but on a machine that runs EAs around the clock there is no reason to save power inside Windows: use High performance. In an administrator Command Prompt, powercfg /getactivescheme shows the active plan; powercfg /list lists the plans with their identifiers, and powercfg /setactive followed by the identifier of High performance switches to it.
9. Do not leave a browser open
A browser left open with a few tabs keeps using memory and CPU that the terminals could have. Use it to download your EA or the broker's installer, then close it. The same applies to installers, archive tools and anything else you opened once.
10. Antivirus exclusions for the terminal folders
Microsoft's own documentation says exclusions are usually not needed. The case where they help is an antivirus that keeps rescanning the terminal's data folder, where MetaTrader writes history and logs all day.
- In MetaTrader, use File > Open Data Folder to see the exact path of that terminal's data folder. Repeat for each terminal.
- Add each folder as a path exclusion: in the Windows Security app, or in an administrator PowerShell with
Add-MpPreference -ExclusionPath "<the folder path>". - Exclude those folders only, never a whole drive, and only if your EAs and indicators come from sources you trust: files in an excluded folder are no longer scanned.

Habits
11. No optimisations or heavy backtests on the live VPS
The Strategy Tester, and especially an optimisation, uses as much CPU as it can get, for hours. On the VPS that trades live it competes with your EAs for the same CPU. Run tests on your own computer or on a separate machine sized for it, and keep the live VPS for live terminals.
12. Disconnect, do not sign out
When you finish, close the remote desktop window. That disconnects you and everything keeps running. Sign out in the Start menu ends the Windows session and closes the terminals with it. If you connect from a Mac, the guide on connecting to a Windows VPS from a Mac shows the same difference from that side.
Once a week, open Task Manager with the terminals running and look at CPU and memory. For a closer look, Resource Monitor (resmon) and Performance Monitor (perfmon) are built into Windows. If one terminal stands out, apply steps 1 to 4 to that one first.
Sizing: when tuning is not enough
Tuning makes each terminal lighter; it does not change how much CPU and RAM the VPS has. Dipgate's Trading VPS plans list how many trading platforms each one is meant for (specs for new orders):
| Plan | CPU (as listed) | RAM | Trading platforms |
|---|---|---|---|
| Trading VPS Bronze | 3 GHz CPU | 3 GB DDR5 | up to 3 |
| Trading VPS Silver | 6 GHz CPU | 6 GB DDR5 | up to 6 |
| Trading VPS Gold | 9 GHz CPU | 9 GB DDR5 | up to 10 |
Worked example: you run four MT4 terminals, each with two or three EA charts. That is over the Bronze limit of 3, so Silver (up to 6) is the plan to start from, with the checklist above applied to all four terminals. Real usage still depends on the EAs and the number of charts, so check Task Manager in the first week. If CPU or memory stays near the top with the checklist applied, move up a plan rather than cutting further into what the EAs need.
When this is not the right approach
- The EA needs deep history. Some EAs and indicators calculate over thousands of bars. Cutting max bars below that changes their signals. Leave bars alone and size the VPS for it.
- You run one MetaTrader account. You may not need a Windows desktop to tune at all: Metatrader In Cloud runs one MetaTrader 4 or 5 in the browser, with one trading account and unlimited Expert Advisors.
- You run dozens of terminals or heavy backtests. No amount of tuning makes a VPS a backtesting machine. Dipgate's Trading Servers are physical servers aimed at dozens of terminals and heavy backtests.
- The VPS is slow for another reason. A stuck session, a full disk or a network problem looks like "slow" too: see why a trading VPS gets slow before you start cutting settings.
How this works on Dipgate
The checklist applies to a Dipgate Trading VPS as it is: you have full control of Windows, so the items above are yours to set and check. What Dipgate provides around it:
| Topic | On a Dipgate Trading VPS |
|---|---|
| Restart recovery (item 7) | Autologin is set up. Move each platform shortcut into the "My Platforms Autostart" folder so it starts after a reboot. If you change the VPS password, redo the autologin, as the autostart article describes. |
| Windows updates (item 7) | The knowledge base has a video on installing Windows updates on a Dipgate VPS. |
| MetaTrader settings (items 1 to 5) | The MetaTrader optimisation article covers the same terminal settings. |
| Checking resources | The resource monitoring article covers Task Manager, perfmon and resmon, and suggests a weekend reboot. |
| Plan size | Up to 3, 6 or 10 trading platforms on Trading VPS Bronze, Silver and Gold; plans can be upgraded later. |
| Operating system | Windows Server 2022, 2019 or 2016, chosen at order. Menus can differ slightly between versions. |
