GuideUpdated 26 November 20269 min read

A checklist to make MetaTrader EAs use less CPU and RAM on a Windows VPS: terminal settings, Windows settings and habits, with what each change costs you.

In short
  • Start inside MetaTrader: lower max bars, close charts the EA does not trade on, hide unused Market Watch symbols, turn off news and sounds.
  • Then Windows: best-performance visual effects, the High performance power plan, update reboots at a time you choose, no browser left open.
  • Do not run optimisations or heavy backtests on the VPS that trades live, and close the remote desktop window instead of signing out.
  • Make sure each terminal starts again after a reboot. On a Dipgate Trading VPS autologin is set up: put each platform's shortcut in the "My Platforms Autostart" folder.
  • If the VPS is still short of CPU or RAM after the checklist, the fix is a bigger plan, not more tuning.

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.

Four areas: MetaTrader settings, Windows settings, habits and sizing
Where the checklist acts, from the cheapest change to the last resort.

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

#WhereChangeWhat it saves or prevents
1MetaTraderLower max bars in chart (and in history on MT4)RAM and CPU per chart, disk per symbol
2MetaTraderClose charts the EA does not trade on, remove decorative indicatorsCPU on every tick
3MetaTraderHide unused Market Watch symbolsQuote traffic and processing
4MetaTraderTurn off news and event soundsBackground downloads and noise
5MetaTraderOne profile per purposeStray analysis charts in the live terminal
6WindowsVisual effects set for best performanceDesktop rendering in your remote session
7WindowsChoose when updates reboot the VPSA restart in the middle of the trading week
8WindowsHigh performance power planPower-saving behaviour inside Windows (a small gain on a virtual server)
9WindowsNo browser left openRAM and CPU taken from the terminals
10WindowsAntivirus exclusion for the terminal folder, if you run an antivirusScans of files MetaTrader rewrites all day
11HabitsNo optimisations or heavy backtests on the live VPSCPU starvation of live EAs
12HabitsClose the remote desktop window, do not sign outTerminals 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.

  1. In MetaTrader, use File > Open Data Folder to see the exact path of that terminal's data folder. Repeat for each terminal.
  2. Add each folder as a path exclusion: in the Windows Security app, or in an administrator PowerShell with Add-MpPreference -ExclusionPath "<the folder path>".
  3. 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.
How to Install Windows Updates on a Dipgate VPS (Enable, Update, Disable Again)
Video: How to Install Windows Updates on a Dipgate VPS (Enable, Update, Disable Again)

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):

PlanCPU (as listed)RAMTrading platforms
Trading VPS Bronze3 GHz CPU3 GB DDR5up to 3
Trading VPS Silver6 GHz CPU6 GB DDR5up to 6
Trading VPS Gold9 GHz CPU9 GB DDR5up 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:

TopicOn 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 resourcesThe resource monitoring article covers Task Manager, perfmon and resmon, and suggests a weekend reboot.
Plan sizeUp to 3, 6 or 10 trading platforms on Trading VPS Bronze, Silver and Gold; plans can be upgraded later.
Operating systemWindows Server 2022, 2019 or 2016, chosen at order. Menus can differ slightly between versions.

FAQ

Will lowering Max bars in chart break my EA?

It can, if the EA or its indicators need more history than you leave. Check the EA's documentation for the history it needs, keep a margin above it, and restart the terminal after the change.

Does closing the remote desktop window stop my Expert Advisors?

No. Closing the window only disconnects you and the terminals keep running. Signing out of Windows closes them.

Should I turn off Windows Update on a trading VPS?

Turning off automatic updates prevents surprise reboots, but security updates still need installing. Install them by hand at a quiet time, such as the weekend when the forex market is closed, and check your terminals start again afterwards.

How many MetaTrader terminals can a Windows VPS run?

It depends on the EAs, the symbols and the number of charts. As a plan limit, Dipgate's Trading VPS takes up to 3, 6 or 10 trading platforms on Bronze, Silver and Gold.

Do I need antivirus exclusions for MetaTrader?

Microsoft says exclusions are usually not needed. If you run an antivirus that keeps scanning the terminal's data folder, exclude that folder only, and only for EAs from sources you trust.