MT5 EA Modification — Fix Lot Size Recovery & Trade Limit

Trabajo finalizado

Plazo de ejecución 4 minutos
Comentario del Cliente
Developer finished my EA perfectly on the first try. Works exactly as requested and I’m very happy with the results. Highly recommended!

Tarea técnica

I already have an MT5 EA developed, but it has an error in the lot size calculation for loss recovery. I need an experienced MQL5 coder to modify the existing EA to implement the correct lot size recovery logic.


What I need:


  • Fix the lot size calculation so the EA increases lot size correctly after a losing trade to cover the previous loss plus the fixed profit target.
  • Lot size must be calculated using this formula:
    LotSize = (PreviousLoss + ProfitTarget) / (TakeProfitPips * PipValue)
  • Take profit pips remain fixed; only lot size changes.
  • After recovering losses and hitting the profit target, lot size resets to the default base lot.
  • The EA trades only one position at a time based on existing signals or EMA crossover logic.
  • The EA currently has an option to limit the number of trades opened simultaneously — this feature should be maintained or fixed if necessary.
  • Please follow the formula and logic precisely; no guessing.



If you have experience fixing/modifying money management and trade control in MT5 EAs, please get in touch.


Han respondido

1
Desarrollador 1
Evaluación
(68)
Proyectos
127
41%
Arbitraje
19
47% / 53%
Caducado
33
26%
Libre
2
Desarrollador 2
Evaluación
(28)
Proyectos
31
45%
Arbitraje
1
100% / 0%
Caducado
3
10%
Libre
3
Desarrollador 3
Evaluación
(16)
Proyectos
35
23%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
4
Desarrollador 4
Evaluación
(465)
Proyectos
813
49%
Arbitraje
75
21% / 51%
Caducado
141
17%
Trabaja
5
Desarrollador 5
Evaluación
(2)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(22)
Proyectos
29
3%
Arbitraje
4
25% / 0%
Caducado
3
10%
Trabaja
7
Desarrollador 7
Evaluación
(176)
Proyectos
188
46%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabajando
8
Desarrollador 8
Evaluación
Proyectos
2
0%
Arbitraje
4
25% / 50%
Caducado
1
50%
Libre
9
Desarrollador 9
Evaluación
(1)
Proyectos
8
88%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(16)
Proyectos
22
14%
Arbitraje
8
38% / 63%
Caducado
6
27%
Libre
11
Desarrollador 11
Evaluación
(1)
Proyectos
2
50%
Arbitraje
3
0% / 33%
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(319)
Proyectos
568
35%
Arbitraje
82
30% / 45%
Caducado
206
36%
Trabajando
13
Desarrollador 13
Evaluación
(14)
Proyectos
19
11%
Arbitraje
1
0% / 100%
Caducado
5
26%
Libre
14
Desarrollador 14
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
16
Desarrollador 16
Evaluación
(25)
Proyectos
31
13%
Arbitraje
13
0% / 77%
Caducado
9
29%
Libre
17
Desarrollador 17
Evaluación
(510)
Proyectos
977
74%
Arbitraje
27
19% / 67%
Caducado
100
10%
Trabaja
Ha publicado: 1 artículo, 6 ejemplos
18
Desarrollador 18
Evaluación
(75)
Proyectos
80
6%
Arbitraje
46
11% / 54%
Caducado
7
9%
Trabaja
19
Desarrollador 19
Evaluación
(4)
Proyectos
7
43%
Arbitraje
0
Caducado
2
29%
Libre
20
Desarrollador 20
Evaluación
(22)
Proyectos
28
7%
Arbitraje
9
33% / 33%
Caducado
1
4%
Trabaja
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(10)
Proyectos
14
43%
Arbitraje
0
Caducado
3
21%
Libre
23
Desarrollador 23
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
24
Desarrollador 24
Evaluación
(10)
Proyectos
13
0%
Arbitraje
24
0% / 75%
Caducado
4
31%
Trabaja
25
Desarrollador 25
Evaluación
(3)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
26
Desarrollador 26
Evaluación
(7)
Proyectos
6
0%
Arbitraje
4
25% / 75%
Caducado
2
33%
Libre
Solicitudes similares
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo, in grado di adattare il proprio comportamento alle mutevoli condizioni di mercato di XAUUSD. Lo sviluppatore dovrebbe essere libero di combinare qualsiasi tecnica ritenuta opportuna
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
de 1 a 2 día(s)