Professional MT5 XAUUSD OCO Scalping EA with Dynamic Trailing Stop

MQL5 Experts

Specification

I need a professional MT5 Expert Advisor (MQL5) for XAUUSD.

The EA should implement the following logic:

1. Place one Buy Stop and one Sell Stop pending order simultaneously.
2. When one pending order is triggered, immediately cancel the opposite pending order (OCO logic).
3. After the active trade closes, instantly place a new Buy Stop and Sell Stop.
4. Use a configurable initial Stop Loss.
5. Implement a dynamic trailing stop:
   - Trailing starts after a configurable profit threshold.
   - After activation, Stop Loss should continuously trail the price at a configurable distance.
   - Stop Loss must never move backwards.
6. Default trading session should be London, but Asian and New York sessions must be individually enabled/disabled from inputs.
7. Do not open new trades when the spread exceeds the configured maximum.
8. Only one active position and one Buy Stop + one Sell Stop should exist at any time.
9. The EA must recover correctly after MT5 or VPS restart.
10. All important settings must be editable from EA inputs.

Extra requirements:
- Clean and well-structured MQL5 code.
- Deliver BOTH .mq5 source code and .ex5 compiled file.
- Include bug fixes after delivery if any implementation issues are found.
- I will provide a screen recording that shows the exact expected behavior. If there is any difference between the text and the video, the video behavior should be followed.

Responded

1
Developer 1
Rating
(259)
Projects
324
30%
Arbitration
34
26% / 65%
Overdue
10
3%
Working
2
Developer 2
Rating
(107)
Projects
175
25%
Arbitration
23
13% / 78%
Overdue
16
9%
Free
3
Developer 3
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
4
Developer 4
Rating
(454)
Projects
718
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Free
5
Developer 5
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(458)
Projects
799
48%
Arbitration
74
19% / 51%
Overdue
139
17%
Working
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(163)
Projects
172
44%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
10
Developer 10
Rating
(2325)
Projects
2928
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
11
Developer 11
Rating
(20)
Projects
27
30%
Arbitration
4
50% / 25%
Overdue
4
15%
Working
12
Developer 12
Rating
(597)
Projects
690
33%
Arbitration
43
44% / 44%
Overdue
12
2%
Loaded
13
Developer 13
Rating
(7)
Projects
10
10%
Arbitration
4
50% / 0%
Overdue
0
Working
Published: 4 articles, 34 codes
14
Developer 14
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
15
Developer 15
Rating
(545)
Projects
827
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Working
Published: 1 code
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(58)
Projects
90
43%
Arbitration
4
0% / 100%
Overdue
3
3%
Working
18
Developer 18
Rating
(48)
Projects
56
34%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
19
Developer 19
Rating
(14)
Projects
20
25%
Arbitration
0
Overdue
2
10%
Free
Published: 3 codes
20
Developer 20
Rating
(45)
Projects
56
59%
Arbitration
4
75% / 25%
Overdue
1
2%
Working
21
Developer 21
Rating
(43)
Projects
49
29%
Arbitration
4
25% / 25%
Overdue
0
Free
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
(200)
Projects
258
21%
Arbitration
22
50% / 18%
Overdue
0
Loaded
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
26
Developer 26
Rating
(13)
Projects
25
44%
Arbitration
2
0% / 100%
Overdue
5
20%
Loaded
27
Developer 27
Rating
(641)
Projects
866
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Free
28
Developer 28
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
29
Developer 29
Rating
(64)
Projects
68
25%
Arbitration
12
42% / 42%
Overdue
4
6%
Free
30
Developer 30
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
31
Developer 31
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
32
Developer 32
Rating
(3)
Projects
5
20%
Arbitration
1
100% / 0%
Overdue
2
40%
Free
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
35
Developer 35
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
37
Developer 37
Rating
(317)
Projects
564
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
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
(6)
Projects
7
43%
Arbitration
1
0% / 100%
Overdue
0
Free
41
Developer 41
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
42
Developer 42
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
43
Developer 43
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
44
Developer 44
Rating
(2668)
Projects
3400
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
45
Developer 45
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello, I am looking for an experienced developer to build a fully automated Python-based MT5 trading bot. The strategy is based on Smart Money Concepts (SMC) and includes multi-timeframe analysis, automated trade execution, risk management, and backtesting. Requirements: Python and MetaTrader 5 integration SMC strategy implementation Automated trade execution Risk management (SL, TP, position sizing) Backtesting and
O EA deve operar - na corretora BINANCE - com duas médias móveis que podem ser aritmética, exponencial, ponderada, alma( Alnaud Legoux ), Jurik. O EA fica comprado quando a primeira média (rápida) cruzar a segunda média ( lenta ) para cima e vendido quando a primeira média cruzar a segunda média para baixo. Cada entrada deve ser zerada por stop loss, stop gain ou na virada de mão
BullyMax Pro 30+ USD
"Act as an expert MQL5 algorithmic trading developer. I want you to create a profitable and efficient Expert Advisor for MetaTrader 5. Do not write the code yet; read the following trading rules, analyze them, and ask me any clarifying questions if needed. Timeframe: [e.g.15 minutes Chart] Entry Logic: [e.g.MACD + RSI + REVERSAL PRICE ACTION. Enter buy when Macd line crosses above the signal line ,RSI above 30 and
I am looking for an experienced MQL5 developer to build and optimize an Expert Advisor for MT5. Requirements: 1. The EA must be capable of passing prop firm challenges: - Profit target: 8-10% - Max daily drawdown: 4-5% - Max total drawdown: 8-10% - No martingale, no grid - News filter included 2. The EA must manage funded accounts long term with consistent monthly returns. 3. The EA must run on VPS
Inocome and in the time i dont have any thing i play in it making some money because i dont love sit doing nothing personaly and i want to start a busniss but i want money for that and my incom doesnt helps me for that so i want another income
i want a developer to build me a robot according to mt style i want an engine which is going to trade gold with small accounts, i want it to be perfect or any developer who has that existing robot we can negoiate the price
I have a strategy currently running as an MT5 EA and want a faithful port to NinjaTrader 8 (NinjaScript). Same entry/exit logic, same risk model, matching backtest behavior as closely as the platform allows. I'll provide the MT5 source and a written spec of the rules. Please tell me the main differences I should expect between MT5 and NinjaTrader 8 (NinjaScript) for this kind of strategy
Hi, I am looking for an experienced MQL5 developer to modify an existing, fully functional MetaTrader 5 Expert Advisor (Source code .mq5 Version 2.62 will be provided). Brief Overview of the EA: It executes trades based on 4 custom Supply/Demand levels (R1, R2, S1, S2) which are inputted manually . It uses two custom indicators for confirmation: SPA (Price Action filter) and AMG (Volume/Momentum filter). The code
Description: I am looking for an experienced MQL5 developer to build a fully automated Expert Advisor (EA) for MT5 tailored for Prop Firm challenges and funded accounts. I need a robust, plug-and-play solution with rigorous risk controls. Key Requirements: Platform: MT5 Trading Logic: I am looking for a reliable strategy based either on a Breakout Strategy (e.g., London session breakout) or a Mean Reversion Strategy
I need someone to develop a very simple and basic Expert Advisor for MetaTrader 5. The EA should open and close trades based on a custom trading time schedule. I am a student and I do not have a budget, so I am kindly asking if someone can help me for free or as a beginner-friendly project. The EA does not need to be complicated. I only need basic settings for start time, end time, buy/sell option, lot size, stop

Project information

Budget
150 - 300 USD
Deadline
from 10 to 20 day(s)

Customer

Placed orders1
Arbitrage count0