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

Termos de Referência

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


Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(51)
Projetos
69
35%
Arbitragem
4
25% / 75%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(32)
Projetos
35
34%
Arbitragem
5
0% / 80%
Expirado
0
Trabalhando
Publicou: 2 códigos
3
Desenvolvedor 3
Classificação
(104)
Projetos
167
25%
Arbitragem
23
9% / 78%
Expirado
16
10%
Trabalhando
4
Desenvolvedor 4
Classificação
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
5
Desenvolvedor 5
Classificação
(25)
Projetos
33
24%
Arbitragem
3
33% / 33%
Expirado
4
12%
Livre
6
Desenvolvedor 6
Classificação
(253)
Projetos
259
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
7
Desenvolvedor 7
Classificação
(16)
Projetos
19
11%
Arbitragem
8
38% / 38%
Expirado
2
11%
Carregado
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(530)
Projetos
804
62%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
Publicou: 1 código
12
Desenvolvedor 12
Classificação
(209)
Projetos
281
46%
Arbitragem
27
59% / 37%
Expirado
36
13%
Livre
13
Desenvolvedor 13
Classificação
(12)
Projetos
16
13%
Arbitragem
4
50% / 25%
Expirado
4
25%
Trabalhando
14
Desenvolvedor 14
Classificação
(32)
Projetos
32
63%
Arbitragem
1
0% / 0%
Expirado
1
3%
Trabalhando
Publicou: 5 códigos
15
Desenvolvedor 15
Classificação
(309)
Projetos
554
35%
Arbitragem
78
32% / 42%
Expirado
200
36%
Carregado
16
Desenvolvedor 16
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
(628)
Projetos
848
47%
Arbitragem
29
38% / 14%
Expirado
63
7%
Trabalhando
18
Desenvolvedor 18
Classificação
(3)
Projetos
3
33%
Arbitragem
0
Expirado
0
Trabalhando
19
Desenvolvedor 19
Classificação
(168)
Projetos
199
48%
Arbitragem
3
33% / 33%
Expirado
2
1%
Trabalhando
20
Desenvolvedor 20
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
(39)
Projetos
44
25%
Arbitragem
13
8% / 69%
Expirado
1
2%
Ocupado
22
Desenvolvedor 22
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
50 - 100 USD
Prazo
para 2 dias

Cliente

(1)
Pedidos postados3
Número de arbitragens0