MT5 EA Modification — Fix Lot Size Recovery & Trade Limit

Job finished

Execution time 4 minutes
Feedback from customer
Developer finished my EA perfectly on the first try. Works exactly as requested and I’m very happy with the results. Highly recommended!

Specification

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.


Responded

1
Developer 1
Rating
(68)
Projects
126
40%
Arbitration
18
44% / 56%
Overdue
33
26%
Working
2
Developer 2
Rating
(28)
Projects
31
45%
Arbitration
1
100% / 0%
Overdue
3
10%
Free
3
Developer 3
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
4
Developer 4
Rating
(457)
Projects
795
49%
Arbitration
71
17% / 54%
Overdue
139
17%
Free
5
Developer 5
Rating
(2)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(22)
Projects
29
3%
Arbitration
4
25% / 0%
Overdue
3
10%
Working
7
Developer 7
Rating
(146)
Projects
155
42%
Arbitration
3
33% / 33%
Overdue
1
1%
Loaded
8
Developer 8
Rating
Projects
2
0%
Arbitration
4
25% / 50%
Overdue
1
50%
Free
9
Developer 9
Rating
(1)
Projects
8
88%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(16)
Projects
22
14%
Arbitration
8
38% / 63%
Overdue
6
27%
Free
11
Developer 11
Rating
(1)
Projects
2
50%
Arbitration
3
0% / 33%
Overdue
0
Free
12
Developer 12
Rating
(312)
Projects
559
35%
Arbitration
79
32% / 43%
Overdue
203
36%
Working
13
Developer 13
Rating
(14)
Projects
19
11%
Arbitration
1
0% / 100%
Overdue
5
26%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
16
Developer 16
Rating
(24)
Projects
30
13%
Arbitration
12
0% / 75%
Overdue
8
27%
Free
17
Developer 17
Rating
(509)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
101
10%
Free
Published: 1 article, 6 codes
18
Developer 18
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
19
Developer 19
Rating
(4)
Projects
7
43%
Arbitration
0
Overdue
2
29%
Free
20
Developer 20
Rating
(19)
Projects
23
9%
Arbitration
6
33% / 50%
Overdue
1
4%
Loaded
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
23
Developer 23
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
24
Developer 24
Rating
(9)
Projects
13
0%
Arbitration
23
0% / 78%
Overdue
4
31%
Free
25
Developer 25
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
26
Developer 26
Rating
(6)
Projects
5
0%
Arbitration
3
33% / 67%
Overdue
2
40%
Free
Similar orders
Pro firm setup 30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
5.20buy-20.5sell 50 - 1000 USD
⸻ 🧠 Professional AI Prompt (Clear English Version) Act as a professional algorithmic trading engineer with deep expertise in developing automated trading systems for TradingView and MetaTrader. You have strong knowledge of market behavior, trend analysis, and risk management. Your task is to design a fully automated trading strategy based on the following requirements: ⸻ 🎯 Entry Conditions: • Open a BUY trade
I need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE
VWAP BB Sniper EA Quantum VWAP Scalper SmartFlow FX Bot Institutional Edge EA 🧠 PRODUCT OVERVIEW VWAP + Bollinger Bands Auto Trading System A high-precision forex scalping bot designed to capture institutional price movements using: VWAP (fair value tracking) Bollinger Bands (volatility & entry timing) 👉 Built for fast, consistent intraday profits
Hello traders, I have Quantum queen v3.52, which is the latest version, available for $500 only. The price on the platform is around $1800, but I am offering it for a much lower price for serious buyers. Details: Product: Quantum queen Version: v3.52 Price: $500 Condition: Serious buyers only
EA for prop firms 30 - 500 USD
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
I WANT TO CONVERT MY INDICATOR TO ROBOT, BUT I DONT HAVE THE SOURCE CODE , THE PROGRAMMER WILL DEVELOP THE SOURCE CODE FOR THE JOB. THE STRAGY IS SIMPLE , THE ROBOT WILL EXECUTE A TRADE WHEN THE SIGNAL FROM THE INDICATOR APPEARS. BUY SIGNAL IS WHEN THE ARROW APPEAS ON THE LOWER ZONE ( SUPPORT ZONE) SELL SIGNAL WHEN THE ARROW APPEARS ON THE UPPER ZONE ( RESISTANCE ZONE).THE ROBOT WILL HAVE THE FOLLWING FEATURES (1)

Project information

Budget
30+ USD
Deadline
from 1 to 2 day(s)