Quick answer
How do I reduce MT4 memory usage on a VPS?
Here is how to reduce MT4 memory usage on a VPS: open Tools > Options > Charts and lower Max bars in history and Max bars in chart, close charts the EAs do not need, and hide unused symbols in Market Watch, then restart MT4. CandleVPS plans hold 4 GB to 16 GB of RAM, so trimming often avoids a larger plan.
In brief
- Max bars in chart limits what each chart loads into memory.
- Max bars in history limits what is kept on disk and reloaded.
- Fewer charts and symbols mean less data streaming in.
- Restart MT4 so the new limits apply.
How do I reduce MT4 memory usage on a VPS, step by step?
Measure first
Open Task Manager on the server and note the memory used by each terminal.exe.
Lower the bar limits
In MT4, open Tools > Options (Ctrl + O), Charts tab, and lower Max bars in history and Max bars in chart to what the EAs need.
Close unused charts
Keep only the charts that carry an EA or that you watch; save the profile.
Trim Market Watch
Right-click Market Watch and hide the symbols no EA trades.
Remove heavy indicators
Detach indicators that are only for display from the EA charts.
Restart and measure again
Close and reopen MT4, then compare memory in Task Manager after a session.
Which settings cut MT4 memory the most?
| Setting | Where | Effect |
|---|---|---|
| Max bars in chart | Tools > Options > Charts | Caps bars loaded per open chart |
| Max bars in history | Tools > Options > Charts | Caps bars saved on disk when a chart closes |
| Open charts | Window menu, profile | Each chart holds its own bars and objects |
| Market Watch symbols | Market Watch, right-click | Fewer quotes streaming in |
| Indicators | Chart, Indicators list | Each buffer adds memory per bar |
What do Max bars in history and Max bars in chart do?
One limits disk, the other limits memory per chart. MetaQuotes' help says Max bars in chart caps the bars shown and downloaded when a chart opens, to protect computer resources, while Max bars in history sets how many bars are stored on disk and is used later by the strategy tester. Very high values on both, across many charts, fill RAM fast. Lower them to what the EA's longest indicator needs, with a margin.
What is the best Max bars value for an EA?
Enough bars for the EA's longest lookback, not the default maximum. An EA using a 200-period moving average on H1 needs a few hundred bars, not hundreds of thousands. If the EA's documentation gives a minimum, follow it. Backtests that need long history are better run on a separate terminal or at home.
When is a bigger plan the better answer?
When memory stays above about 80% after trimming. Swapping to disk slows every terminal at once. Size the RAM again and compare plans: CandleVPS's check of 16 November 2026 lists Taper at 6 GB for $9.75 a month and Pillar at 8 GB for $11.25 on 12 months. Multiple accounts are covered in how to run multiple MT4 terminals on one VPS.
How do I find which terminal uses the most memory?
Add the Command line column in Task Manager. On the Details tab, right-click a column header, choose to select columns and tick Command line: each terminal.exe then shows its folder, so the copy using the most memory is easy to spot. Trim that terminal first.
Does lower memory use change how the EA trades?
Only if the bar limit is set below what the EA reads. An EA that needs more bars than the chart holds can compute wrong values or refuse to trade. Test on demo after each change and read the Experts tab. Trading foreign exchange and CFDs on margin carries a high risk of losing money. A VPS keeps a terminal online; it does not make a strategy profitable, and CandleVPS gives no investment advice. Platform notes are on the MT4 VPS page.
Verdict
- That is how to reduce MT4 memory usage on a VPS before paying for more RAM.
- Lower both bar limits, close idle charts, hide idle symbols, restart MT4.
- Upgrade the plan only if memory stays high after trimming.
Reducing MT4 memory: common questions
How much memory does one MT4 terminal use?
It varies with charts, bars and EAs; Task Manager on the server gives the real figure.
Does the MT5 platform have the same settings?
MT5 has Max bars in chart in Tools > Options > Charts; history is limited by disk space.
Do I need to restart MT4 after changing Max bars?
Yes, reopen MT4 or the charts so the new limit applies.
Will hiding Market Watch symbols break an EA?
Not if the EA's own symbols stay visible.
How do I reduce MT4 memory usage on a VPS with many terminals?
Apply the same limits in every copy; each has its own settings.
Sources (2)
- MetaTrader 4 Help: Charts settings metatrader4.com/en/trading-platform/help/setup/setup_charts — MetaQuotes (read 2026-11-16)
- MetaTrader 5 Help: platform settings metatrader5.com/en/terminal/help/startworking/settings — MetaQuotes (read 2026-11-16)
More headroom
Pillar: 8 GB RAM, $11.25 a month on 12 months.
- Built by a person, 1 hour at most after confirmation
- Lost days credited back if a server cannot be delivered
- Pay in BTC, XMR, USDT, USDC, ETH, SOL or LTC
- DomaineGoat LLC · Panama