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:
-
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
-
-
Identify the exact root cause of the increasing RAM usage
-
Correct the issue so the EA can run long-term without MT5 memory growth or instability
-
Improve resource management and stability, particularly for multi-chart and multi-terminal VPS environments.
-
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