Advertisement IC Markets

RAM and the terminal that eats it

Optimize MetaTrader 4, MetaTrader 5, cTrader, and TradingView for speed. Discuss Level II Market Depth (DOM), custom hotkeys, and volume indicators.
Post Reply
Fairman
Posts: 7550
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

RAM and the terminal that eats it

Post by Fairman »

RAM and the terminal that eats it

A trading platform keeps price data for every open chart in memory. Open dozens of charts with a long history, and memory consumption climbs into the gigabytes. Running several terminals on one machine multiplies it.

When physical memory runs short, Windows starts swapping to disk. The platform slows, the interface hesitates, and a burst of ticks produces a queue of delayed actions.

Memory leaks add to the issue. Some expert advisors or indicators allocate memory and never release it. A terminal that runs fine in the morning is sluggish by evening, and a restart cures it.

Signs to watch: memory usage in the task manager that grows steadily during the day, or a platform that needs a daily restart to stay responsive.

Practical steps include limiting the maximum bars on a chart to what's needed, closing unused charts, and monitoring each terminal's memory figure.

For a VPS, memory is often the first limit hit. A plan with 2 GB may run one terminal comfortably and struggle with three.

Adding RAM is among the cheapest ways to improve stability, and often the least considered.

After a full day of running, how much memory does the terminal use?
It’s Fairman :geek:
Recommended broker for automated trading & scalping IC Markets
FXS London Scalper
Posts: 1177
Joined: Sun Oct 18, 2026 12:25 pm

Re: RAM and the terminal that eats it

Post by FXS London Scalper »

Fairman wrote: Practical steps include limiting the maximum bars on a chart to what's needed, closing unused charts, and monitoring each terminal's memory figure.
Closing unused charts and reducing 'max bars in chart' in the platform settings can lower memory use substantially. Restarting the platform daily, ideally in a quiet period, also prevents slow buildup over several days.
FXS Official Team | London Session Desk
Amanhasnoname
Posts: 2602
Joined: Fri Oct 30, 2026 9:45 am

Re: RAM and the terminal that eats it

Post by Amanhasnoname »

A simple way to catch a leak is to note the terminal's memory figure in the task manager at the start of the day and again a few hours later, with the same charts open and nothing else changed. Steady growth with a fixed setup points to an indicator or EA that keeps allocating without releasing. Removing them one at a time on a demo terminal and watching which change stops the growth usually finds the culprit faster than guessing.

The max bars setting deserves a careful look because it affects every chart at once. Many scalping setups only need a few thousand bars on the lower timeframes, while the default can be far higher. Lowering it reduces memory use and also speeds up indicator recalculation when a burst of ticks arrives. It is worth checking that any EA which needs a long lookback still has enough history after the change.

On a VPS, leaving headroom matters more than squeezing in an extra terminal. If memory sits near the limit on a quiet day, a busy news session can push it into swapping, which is exactly when responsiveness matters most. Scheduling a daily restart in a quiet period, as already mentioned, is a reasonable safety net while the root cause is tracked down.
Post Reply