MT5 EA Modification — Fix Lot Size Recovery & Trade Limit

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
(65)
Projects
118
39%
Arbitration
15
47% / 53%
Overdue
29
25%
Loaded
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Working
3
Developer 3
Rating
(15)
Projects
34
24%
Arbitration
3
0% / 33%
Overdue
2
6%
Working
4
Developer 4
Rating
(422)
Projects
744
49%
Arbitration
61
16% / 49%
Overdue
136
18%
Working
5
Developer 5
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(11)
Projects
13
0%
Arbitration
1
0% / 0%
Overdue
1
8%
Working
7
Developer 7
Rating
(28)
Projects
30
7%
Arbitration
2
50% / 50%
Overdue
2
7%
Loaded
8
Developer 8
Rating
Projects
0
0%
Arbitration
3
0% / 0%
Overdue
0
Working
9
Developer 9
Rating
(1)
Projects
3
67%
Arbitration
0
Overdue
0
Working
10
Developer 10
Rating
(11)
Projects
16
19%
Arbitration
5
40% / 60%
Overdue
4
25%
Loaded
11
Developer 11
Rating
Projects
1
100%
Arbitration
2
0% / 0%
Overdue
0
Working
12
Developer 12
Rating
(287)
Projects
517
36%
Arbitration
62
34% / 35%
Overdue
187
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
(572)
Projects
943
47%
Arbitration
303
59% / 25%
Overdue
125
13%
Working
16
Developer 16
Rating
(3)
Projects
3
33%
Arbitration
2
0% / 0%
Overdue
0
Loaded
17
Developer 17
Rating
(459)
Projects
903
77%
Arbitration
25
16% / 68%
Overdue
100
11%
Free
Published: 1 article, 6 codes
18
Developer 18
Rating
(66)
Projects
73
5%
Arbitration
33
15% / 36%
Overdue
6
8%
Working
19
Developer 19
Rating
(3)
Projects
5
20%
Arbitration
0
Overdue
3
60%
Working
20
Developer 20
Rating
(7)
Projects
7
29%
Arbitration
0
Overdue
0
Loaded
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
Rating
(5)
Projects
8
13%
Arbitration
0
Overdue
0
Working
23
Developer 23
Rating
(270)
Projects
550
49%
Arbitration
55
40% / 36%
Overdue
227
41%
Working
24
Developer 24
Rating
(8)
Projects
12
0%
Arbitration
21
0% / 81%
Overdue
4
33%
Free
25
Developer 25
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
Similar orders
I'm looking for someone who can help me create an EA that can both backtest and trade automatically according to a specific strategy that I've developed myself. The strategy is NOT based on any indicator but rather on market structure regarding higher highs, lower lows, liquidity etc. I need someone who has done such EA's before and have a deep experience
Hi I have a pine script that I want to change to Mql5 ea. The script uses ZigZag to adentify entries and Fibonaci to do exits. I would like to add a very leint stoploss to the ea as it does go into to drawdown sometimes befor it hits take profit. I would lke to call it Dragonfly EA
Category: Trading robots (Expert Advisors) Platform: MetaTrader 5 Budget: $300 (fixed) Description: I need an experienced MQL5 developer to build a **high-performance scalper EA** for MT5 designed to **pass a prop firm challenge within one week** while fully complying with prop firm rules (daily drawdown, max loss, profit target). This is a paid job with a strict requirement for **full source code delivery and IP
JOB DESCRIPTION We are building a cloud-based, self-sustaining trading algorithm designed to operate autonomously with minimal supervision. The system should leverage AI to analyze real-time market data and news, make trading decisions across multiple asset classes, and adapt dynamically to changing conditions. OBJECTIVES 1. Generate consistent returns (target \~10% monthly +- 2%) 2. Maintain strict drawdown control
Hello expert developer how are you doing I need a trading view indicator converted to NT8, and automate trading with a set of rules. Would you like to discuss this? The indicator is Range Filtered Trend Signals by AlgoAlpha - attached are some notes. Thanks
Hello, I’m looking for a skilled developer to create a Telegram-to-MT4 & MT5 signal copier bot/EA with the following features: Core Features: Copy signals (both text and images) from Telegram and execute trades in MT4 and MT5 (two separate versions). AI parsing mode: Option to enable AI to read and interpret signals before execution. Fully optimized, stable, and bug-free performance. Prop firm compatibility
Modify bot mt5 100+ USD
i nee a change the bot velocity vector 2.0 modification indicator profitable ems trading bot I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance
Hello Great developer There's also the GPT AI EA, right? It does this automatically. I know there's such a thing. I saw it somewhere online, but not everyone can do it, or it's very difficult to get someone to provide it! So it should open with buy or sell according to AI (AI), just like the market analysis, and close accordingly according to TSL! Ideally, it should automatically replace the risk management based on
Hello to all developers, I want an EA (Expert Advisor) that is already made. This is for forex. I want to add to it. I will provide my strategy. I want to explain my strategy on a zoom call. It needs to have the ability to trade different trading pairs. It needs to show risk reward profitability with little drawdown. Let me know. I want to add a few things to it. I need to use it on trading view. Include EA that
Hello I need an already built MT4 EA or HFX with upto 80-90 % win rate, it will be able to trade on any prop firm broker both on Demo challenges and on live. Please if you have any Ea with this specification kindly send it for 1 week testing ASAP. Thank you

Project information

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

Customer

(2)
Placed orders5
Arbitrage count0