Advertisement IC Markets

Memory leaks and the platform that slows down over days

Share, develop, and backtest custom MQL4/MQL5 Expert Advisors, Python data-scraping scripts, trading bots, and automated market alert systems.
Post Reply
Fairman
Posts: 6757
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Memory leaks and the platform that slows down over days

Post by Fairman »

Memory leaks and the platform that slows down over days

Some trading terminals run fine after a restart and gradually degrade. Memory usage climbs, the interface becomes sluggish, and eventually the platform freezes or crashes. Long-running EAs, custom indicators, and accumulated chart objects are common causes.

The effect on scalping is subtle at first. Order response slows by tens of milliseconds, then hundreds. Because the degradation is gradual, it is easy to miss until a failure occurs at a critical moment.

Monitor memory and CPU usage over several days. A steadily rising trend suggests a leak. Restarting the terminal on a schedule, such as every day before the main session, is a simple mitigation.

For EAs and indicators written in-house, check for objects created but never released, arrays that grow without bound, and log files that accumulate. Third-party tools may need updates or replacement.

Automatic restart scripts and watchdogs add resilience, but they should handle open positions properly on restart.

How often is the terminal restarted, and does performance improve afterward?
It’s Fairman :geek:
Recommended broker for automated trading & scalping IC Markets
Post Reply