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
126
40%
Arbitraje
18
44% / 56%
Caducado
33
26%
Trabaja
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
(461)
Proyectos
803
48%
Arbitraje
73
19% / 52%
Caducado
140
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
(169)
Proyectos
179
46%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabaja
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
(318)
Proyectos
565
35%
Arbitraje
81
31% / 44%
Caducado
204
36%
Libre
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%
Libre
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
(21)
Proyectos
27
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
23
0% / 78%
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
I'm looking for an experienced NinjaTrader 8 (C#) developer to build a fully automated futures trading strategy. Please apply only if you have proven experience developing and testing NinjaTrader strategies. Project Overview Develop a fully automated NinjaTrader 8 strategy. Designed for Apex funded and evaluation accounts. Primary instruments: NQ/MNQ Futures (with flexibility to support other futures later). Trading
Code An Loss Rate 90-100% MT5 EA , that can blow a 100 USD account a day ,with fixed TP of 3000 points and SL of 3000 For better Rate Calculations get an strategy that can lead to so
I need a professional MT5 Expert Advisor (MQL5) for XAU/USD (Gold) only. Requirements: - Symbol: XAU/USD only - Timeframe: H1 trend, M5 entry - Smart Money Concept (SMC) - Liquidity Sweep - Break of Structure (BOS) - Order Block Retest - Confirmation Candle (Engulfing or Pin Bar) - ATR-based Stop Loss - Risk:Reward = 1:3 (adjustable) - Auto Lot (1% risk) - Break Even - Trailing Stop - Maximum 2 trades per day - One
Hello, I am looking for an existing, fully backtestable MT5 Expert Advisor or EA portfolio designed specifically for passing an FTMO-style prop-firm evaluation. I am not looking for unrealistic profit claims or a visually perfect backtest. My priority is a statistically defensible probability of passing the challenge while respecting all risk limits. Primary objective The system should be designed for the current
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 designed primarily for US30 (Dow Jones Index) . The EA performs consistently and profitably on demo accounts, but when I run it on an IC Markets Raw or Standard live account, it starts generating losses under what appear to be the same trading conditions. At this time, I cannot provide the source code (.mq4/.mq5). I can only provide the
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell at 50% of the FVG 7. SL: 10 pips above sweep wick 8. TP: 2R
Hello looking for someone to convert an indicator from tradingview to Thinkorswim I have attached the codes from trading view Also, I like make it trigger (alert) a one-time alert when the trend changes, and can also create a custom watchlist column that flags symbols currently in a new trend so you can scan multiple stocks easily. And like the watchlist to show only fresh trend changes or the current trend direction
I want to build a fundamental news trading bot that trade off economic news data, as we know every economic news data released always have effect on the asset associated with it, so this bot will take a trade instantly based on the news data released either to buy or sell, it will come with good money management and also SL and TP target based on price and pips value
Specification : 1. Goal I am commissioning a mean-reversion grid Expert Advisor for XAUUSD on MT5. The deliverable is the complete, commented .mq5 source (strictly personal usel). Offers limited to compiled .ex5 will not be considered. 2. Required framework (non-negotiable) 2.1. Works natively on M5; signals evaluated on closed bars; symmetric long/short. 2.2. Entry logic built on Bollinger Bands + Moving Average
TumiiFX 30 - 20000 USD
1. Use two EMAs: 20 and 50. If EMA 20 is above EMA 50 → uptrend (look for buys) If EMA 20 is below EMA 50 → downtrend (look for sells) 2. Wait for a pullback into the area between the two EMAs. - For buys: price must touch or move between EMA 20 and EMA 50 during the last few candles. - For stils: same idea, but in a downtrend. 3. Entry signal: Buy: a bullish engulfing candle in an uptrend after the pullback

Información sobre el proyecto

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