Debug and Fix Suspected Memory Leak / Resource Issue in MT5 Expert Advisor (No Strategy Changes)

Spécifications

Description

I am looking for an experienced MQL5 developer to investigate and fix a suspected memory or resource usage issue in my MT5 Expert Advisor.

The EA itself works correctly from a strategy and trading logic perspective. The trading model must remain exactly as it currently operates. I am not looking for any changes or optimisation to the strategy.

The goal of this job is purely to identify and fix a technical stability issue, most likely related to memory usage or resource management.


Background

I run the same EA across multiple MT5 terminals on a VPS. The EA places session-based breakout pending orders on Gold and NAS across several charts and brokers.

Recently it has stopped placing orders later on in the trading day. My VPS provider reviewed the MT5 and Windows logs and believes the issue is caused by memory/RAM usage steadily increasing over time until system memory becomes exhausted. Once this happens, MetaTrader begins producing errors.

When this occurs I observe the following behaviour:

  • pending orders not being placed

  • some trades missing

  • inconsistent order placement across terminals

  • EA instances occasionally dropping from charts

Restarting the terminals temporarily restores normal behaviour, which suggests cumulative resource or memory growth during runtime.


Current Setup

  • 6 MT5 terminals running on a VPS

  • The same EA installed on each terminal

  • 10 charts per terminal

  • Brokers include: IC Markets, FTMO, The5ers, FundedNext, and Blueberry Funded

  • Strategy trades Gold and NAS breakout levels

  • Each entry contains two trade legs:

    • Break-even stop loss leg

    • Trailing stop loss leg

  • Multiple pending orders are created at different session levels


Scope of Work

The developer is required to:

  1. Review the EA source code for memory leaks or resource misuse

    This includes checking for issues such as:

    • dynamic arrays growing over time

    • chart objects accumulating

    • indicator handles not being released

    • repeated handle creation

    • inefficient loops or processing on every tick

    • excessive logging or file operations

    • anything that could cause MT5 memory usage to grow continuously

  2. Identify the exact root cause of the increasing RAM usage

  3. Correct the issue so the EA can run long-term without MT5 memory growth or instability

  4. Improve resource management and stability, particularly for multi-chart and multi-terminal VPS environments.

  5. Improve order placement robustness, including better error handling or retry behaviour if necessary.


Critical Requirement – No Strategy Changes

The EA’s trading strategy, entry logic, exit logic, and behaviour must remain exactly the same.

This is extremely important.

The following must not be changed:

  • entry conditions

  • breakout logic

  • stop loss logic

  • trailing stop behaviour

  • session rules

  • trade timing

  • order structure

The purpose of this job is technical stabilisation only. The trading model is already functioning as intended and must remain unchanged.


Deliverables

The developer must provide:

  • a clear explanation of the root cause of the issue

  • a corrected MQ5 source file

  • a summary of all technical changes made

  • confirmation that the trading logic and strategy behaviour remain unchanged

  • optional debug logging if helpful for further monitoring

  • Completed for market open


Developer Requirements

Please apply only if you have strong experience with:

  • MQL5 development

  • MT5 Expert Advisor debugging

  • memory/resource management in MT5

  • multi-chart and multi-terminal EA stability

When responding, please include:

  • your experience debugging resource or memory issues in MQL5

  • how you would approach diagnosing this problem

  • examples of similar work you have done


Répondu

1
Développeur 1
Évaluation
(51)
Projets
69
35%
Arbitrage
4
25% / 75%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(32)
Projets
35
34%
Arbitrage
5
0% / 80%
En retard
0
Travail
Publié : 2 codes
3
Développeur 3
Évaluation
(104)
Projets
167
25%
Arbitrage
23
9% / 78%
En retard
16
10%
Travail
4
Développeur 4
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
5
Développeur 5
Évaluation
(25)
Projets
33
24%
Arbitrage
3
33% / 33%
En retard
4
12%
Gratuit
6
Développeur 6
Évaluation
(253)
Projets
259
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
7
Développeur 7
Évaluation
(16)
Projets
19
11%
Arbitrage
8
38% / 38%
En retard
2
11%
Chargé
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
10
Développeur 10
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
11
Développeur 11
Évaluation
(530)
Projets
804
62%
Arbitrage
33
27% / 45%
En retard
23
3%
Gratuit
Publié : 1 code
12
Développeur 12
Évaluation
(209)
Projets
281
46%
Arbitrage
27
59% / 37%
En retard
36
13%
Gratuit
13
Développeur 13
Évaluation
(12)
Projets
16
13%
Arbitrage
4
50% / 25%
En retard
4
25%
Travail
14
Développeur 14
Évaluation
(32)
Projets
32
63%
Arbitrage
1
0% / 0%
En retard
1
3%
Travail
Publié : 5 codes
15
Développeur 15
Évaluation
(309)
Projets
554
35%
Arbitrage
78
32% / 42%
En retard
200
36%
Chargé
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Développeur 17
Évaluation
(628)
Projets
848
47%
Arbitrage
29
38% / 14%
En retard
63
7%
Travail
18
Développeur 18
Évaluation
(3)
Projets
3
33%
Arbitrage
0
En retard
0
Travail
19
Développeur 19
Évaluation
(168)
Projets
199
48%
Arbitrage
3
33% / 33%
En retard
2
1%
Travail
20
Développeur 20
Évaluation
(3)
Projets
1
100%
Arbitrage
3
0% / 100%
En retard
0
Gratuit
21
Développeur 21
Évaluation
(39)
Projets
44
25%
Arbitrage
13
8% / 69%
En retard
1
2%
Occupé
Commandes similaires
TORUNZ 😎 30+ USD
The robot should use different indicators for a example smart money indicator and market structure structure and break indicators in order for it to enter the market, it should also be able to tell false breakouts is the Bollinger indicator, and if the market is confirmed to be profitable,the robot should rebuy or resell the market according to the predictions made, it should execute the trades if the market reverses
I need an advisor created that opens a position with 0.10 lot size when a bull cross arrow appears on the m5 time frame and closes the trade after exactly one candle stick, the ea does the same thing over and over, a bull cross appear on m5 timeframe, and it opens 1 position with 0.10 lot size, and closes it after one candlestick on m5... If possible, provide a demo version
Cash Flow EA 30+ USD
I want a trading robot with proper risk management and good trading strategies it must make money ,place stop loss below the entry and place a take profit no loss only wins mostly trade major
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider
I have a strategy for US100 where I want a bot to trade according to my strategy, contact me who have proven experience in making bots for MT4 or MT5
Job Description We are looking for an experienced MQL5 developer to build a professional Expert Advisor (EA) for MetaTrader 5 based on a detailed quantitative trading model. The EA will trade XAUUSD (Gold) on the M5 timeframe using a Session Breakout + Fibonacci Retracement strategy with advanced institutional-level filters. The system includes volatility filters, liquidity sweep detection, London session
I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy and implementing strict prop-firm safety protections. The EA must behave exactly as specified below. If the final EA does not match the logic described, I will request revisions until it does. SYMBOL AND TIMEFRAME Symbol: USDJPY Timeframe: M15 only TRADING SESSION Trades may only open
I am looking to purchase an existing and profitable Expert Advisor (EA) designed for Gold (XAUUSD) scalping. This is not a request to develop a new EA . I am only interested in a ready system that is already trading profitably on a live account . Requirements • Designed for Gold / XAUUSD • Compatible with MetaTrader 5 (MT5) • Scalping strategy (preferably M1 or M5) • Verified live trading performance (preferably 6
2 FX pairs M15 execution with higher timeframe bias Session-based trading (UK time) Fixed % risk per trade Controlled pyramiding (add to winners only) Strict daily loss limits (FTMO-style) Proper order handling (SL always set) Basic logging (CSV) Strategy logic will be provided in detail after NDA / agreement. Must deliver: Source code (.mq5) Compiled file (.ex5) Clean, well-commented code Short support window for

Informations sur le projet

Budget
50 - 100 USD
Délais
à 2 jour(s)

Client

(1)
Commandes passées3
Nombre d'arbitrages0