Fix and optimize existing MT5 Expert Advisor.MQ5 source code

Specification

I have an existing MT5 Expert Advisor with the original MQ5 source code. I need an experienced MQL5 developer to review, debug and professionally improve the existing EA, not build an unrelated EA from scratch. The EA is mainly for XAUUSD and already contains entry signals, EMA filters, automatic lot sizing, basket profit management, spread/margin protection, news filtering and recovery logic. The main problem is the position management and recovery logic. Requirements: PROFIT FIRST: When an open trade/basket reaches a valid net-profit target, the EA should close and secure the profit instead of allowing a profitable position to return deeply into loss. HEDGE ONLY FOR EMERGENCY: Hedging must NOT be used during normal trading. The EA must not randomly open BUY and SELL positions against each other. Hedge/recovery should activate only when an existing position is genuinely trapped and predefined emergency conditions are met. SMART RECOVERY: Recovery must have a clear exit/unlock strategy. I do not want permanent BUY/SELL locking or uncontrolled opposite positions. The goal is controlled risk reduction and eventual basket exit. NO IMMEDIATE RE-ENTRY: If a position is manually closed, or the EA closes a basket, it must not immediately reopen the same trade. Add a proper cooldown/reset and require a fresh trading signal before re-entry. AUTOMATIC LOT SIZING: Position size should automatically adapt to account balance/equity and available margin. Small accounts must be protected from oversized positions. As the account grows, lot size may increase conservatively. RISK/EXPOSURE CONTROL: Before opening or adding positions, check free margin, margin level, current drawdown, total open lots and maximum account exposure. COMMISSION: My approximate trading commission is USD 11 per 1.00 lot round turn. Profit/basket calculations should consider estimated commission so the EA targets NET profit, not only gross floating profit. ROLLOVER PROTECTION: Stop new normal entries around 23:00 and resume around 01:15. Existing positions should be managed safely; do not simply close a losing position because the rollover period starts. NEWS/SPREAD PROTECTION: Prevent unsafe new entries during abnormal spread and important/high-impact news conditions where technically possible. Please inspect the complete existing MQ5 source code first and identify conflicts or bugs in the current entry, exit, hedge and recovery logic before modifying it. I need clean, maintainable MQ5 source code that compiles without errors, together with an explanation of the changes. The finished EA must be tested in MT5 Strategy Tester before delivery. Please do not promise guaranteed profits. My priority is robust position management, controlled risk, correct execution and predictable behavior.

Responded

1
Developer 1
Rating
(110)
Projects
182
25%
Arbitration
24
17% / 75%
Overdue
16
9%
Free
2
Developer 2
Rating
(64)
Projects
144
46%
Arbitration
20
40% / 20%
Overdue
32
22%
Free
3
Developer 3
Rating
(13)
Projects
20
40%
Arbitration
1
0% / 100%
Overdue
1
5%
Free
4
Developer 4
Rating
(21)
Projects
27
7%
Arbitration
9
33% / 33%
Overdue
1
4%
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(3)
Projects
4
0%
Arbitration
1
100% / 0%
Overdue
1
25%
Free
7
Developer 7
Rating
(32)
Projects
33
42%
Arbitration
0
Overdue
3
9%
Free
8
Developer 8
Rating
(171)
Projects
184
46%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
9
Developer 9
Rating
(13)
Projects
22
41%
Arbitration
8
0% / 50%
Overdue
3
14%
Free
10
Developer 10
Rating
(6)
Projects
8
38%
Arbitration
1
100% / 0%
Overdue
2
25%
Free
11
Developer 11
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Working
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
1
100%
Free
14
Developer 14
Rating
(3)
Projects
1
0%
Arbitration
5
0% / 100%
Overdue
0
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(3)
Projects
8
63%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(21)
Projects
28
36%
Arbitration
7
14% / 71%
Overdue
2
7%
Free
18
Developer 18
Rating
(63)
Projects
79
57%
Arbitration
6
67% / 17%
Overdue
2
3%
Loaded
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(613)
Projects
716
33%
Arbitration
46
48% / 41%
Overdue
14
2%
Loaded
21
Developer 21
Rating
(5)
Projects
6
50%
Arbitration
0
Overdue
0
Working
Published: 1 code
22
Developer 22
Rating
(851)
Projects
1463
72%
Arbitration
122
29% / 48%
Overdue
358
24%
Free
Published: 3 articles
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
(83)
Projects
95
32%
Arbitration
9
22% / 56%
Overdue
5
5%
Working
25
Developer 25
Rating
(366)
Projects
447
55%
Arbitration
23
57% / 17%
Overdue
30
7%
Loaded
26
Developer 26
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
27
Developer 27
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
28
Developer 28
Rating
(87)
Projects
121
68%
Arbitration
5
80% / 0%
Overdue
12
10%
Working
29
Developer 29
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
0
Free
30
Developer 30
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
31
Developer 31
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
32
Developer 32
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
33
Developer 33
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Loaded
35
Developer 35
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
(33)
Projects
36
33%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
37
Developer 37
Rating
(3)
Projects
3
100%
Arbitration
0
Overdue
0
Working
38
Developer 38
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
39
Developer 39
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
40
Developer 40
Rating
(1)
Projects
1
0%
Arbitration
3
0% / 100%
Overdue
1
100%
Free
41
Developer 41
Rating
(3)
Projects
3
67%
Arbitration
0
Overdue
0
Free
42
Developer 42
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
43
Developer 43
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
44
Developer 44
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
45
Developer 45
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
Similar orders
Hi, can you define entry conditions based on 100 or 200 trades? If you need more history, i can give you more trades. It is EURUSD with great results! If you can do it, contact me
Wise Legend 30 - 500 USD
I want this robot to alert me on a good entry point on the trading flat form ether to buy or to sell. And also alert me when to close the market. And alert me on market continuations
Exact Pine Script Conversion: The EA must replicate my Pine Script exactly — including Support/Resistance, Liquidity Grab/Sweep, 30 EMA, Entry, SL, TP, Partial Booking and Breakeven . No assumptions or changes to the logic. Accurate Entries: The EA must enter exactly according to the Pine Script conditions, including the correct candle and price level after the Support/Resistance or Liquidity Sweep setup. SL & TP: SL
I buy EA for USDEUR or XAUUSD for FTMO with proven backtest. Send me images with backtest reports where daily max dd is 1% on 200k account. I can buy several eas if you have them with proofs. Need images of backtesting for 5 years
I am looking for a programmer that can develop an MT4 indicator that shows COT DATA For Forex, indices and and metals. The indicator must be an oscillator or any other form that would work well in that format. It doesn't need to show all pairs at once, it can show only for current chart. Let's talk
I am looking for an experienced developer to build a cloud-based MT5 trade copier . Requirements: One master MT5 account sends trades to multiple client MT5 accounts. Clients must not need to install an EA or run MT5/VPS themselves . Client accounts should connect using MT5 login, trading password and broker server. Copy market orders, pending orders, SL/TP changes, partial closes and full closes. Support risk/lot
Cerco uno sviluppatore MQL5 esperto per lavorare su un Expert Advisor (EA) XAUUSD per MetaTrader 5 già esistente , versione attuale XAU_V59.mq5 . L'obiettivo è modificare, correggere e sviluppare il codice esistente senza stravolgere la logica già presente , mantenendo le regole ei parametri già definiti, salvo le modifiche espressamente richieste. REQUISITI FONDAMENTALI Il codice deve essere scritto in MQL5 nativo e
Project Title: Modular Session Breakout & Multi-MA EA with Anti-Whipsaw Filters Requirements: Please build an EA where every feature can be individually turned ON/OFF via an independent toggle switch and configured via adjustable parameters. The EA should function as an efficient "Entry Engine" that works in tandem with external risk managers (e.g., KT Equity Protector). 1. Global Settings Master Switch: Global
I need an MT5 Expert Advisor for a mean-reversion strategy on EURUSD: single entry at local price extremes, fixed stop loss and take profit, no grid and no averaging. Position size must be calculated automatically so that risk per trade is capped at a fixed USD amount, with a daily loss limit and a pause after consecutive losses. I will send the full specification — entry conditions, filters and all input parameters
I trade NAS 100 using Harmonic Patterns. I want to create a MT5 EA to trade based on this indicator: https://www.mql5.com/en/market/product/78325?source=Site +Market+MT5+Indicator+Search+Rating006%3abasic+harmonic+patterns I want the EA to have the same take profit levels as indicator: TP1, TP2, TP3 (select in inputs which TP to use). The EA should also use the same Stop Loss as indicator, with the option to adjust

Project information

Budget
30 - 50 USD

Customer

Placed orders1
Arbitrage count0