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
124
40%
Arbitration
17
47% / 53%
Overdue
31
25%
Loaded
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
(456)
Projects
794
49%
Arbitration
71
17% / 54%
Overdue
139
18%
Working
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
(140)
Projects
149
41%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
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
(308)
Projects
553
35%
Arbitration
79
32% / 42%
Overdue
200
36%
Loaded
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
(504)
Projects
971
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Loaded
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
(18)
Projects
22
9%
Arbitration
6
33% / 50%
Overdue
1
5%
Working
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
(270)
Projects
552
49%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
24
Developer 24
Rating
(8)
Projects
12
0%
Arbitration
22
0% / 77%
Overdue
4
33%
Working
25
Developer 25
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
26
Developer 26
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
Similar orders
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
Hi, are you able to create a script/indicator on tradingview that displays a chart screener and it allows me to input multiple tickers on the rows. then the colums with be like "premarket high, premarket low, previous day high, previous day low" . When each or both of the levels break, there will pop up a circle on the chart screener, signaling to me what names are above both PM high and previous day high or maybe
Do you need a profitable and well-structured trading strategy converted into a fully automated Expert Advisor on the MT5 platform? I specialize in developing advanced, high-performance EAs with: ✅ Smart entry & exit logic ✅ Risk-based lot size calculation ✅ Break-even & trailing stop system ✅ Spread & session filters ✅ Daily drawdown protection ✅ Prop firm (FTMO-style) risk compliance ✅ Fully automated trade
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No

Project information

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