MT5 Opening Range Breakout EA — Pending Orders, Risk Management & Restart Protection

MQL5 Asesores Expertos

Tarea técnica

Hello,

I'm looking for an experienced MQL5 developer to build a clean and reliable Opening Range Breakout Expert Advisor for MetaTrader 5.

I have previously experienced problems with EAs placing duplicate pending orders after terminal or VPS restarts. My priority is reliable execution, sensible risk management and an EA that I can confidently test and maintain.

1. Opening Range Strategy

  • Platform: MetaTrader 5.

  • Default symbol: EURUSD.

  • Default timeframe: M5.

  • Trading days: Monday to Friday.

  • Opening range: 08:00–08:30 broker server time.

  • Calculate the highest high and lowest low during that period using completed candles.

  • After the range is complete, place a Buy Stop above the range high and a Sell Stop below the range low.

  • Entry offset: 20 points, configurable.

  • Session times and entry offset must be configurable.

All times refer to broker server time. Automatic daylight-saving adjustment is not required.

2. Pending Order Management

  • When one pending order is triggered, cancel the opposite pending order.

  • Maximum one filled trade per symbol per trading day.

  • Cancel unfilled pending orders at 12:00 server time.

  • Do not open new trades after the pending-order expiry time.

  • Do not create duplicate orders when MT5 or the VPS restarts.

  • Existing EA orders and positions must be recognized correctly after restart.

  • Manage only trades associated with the EA's Magic Number.

If entry prices are no longer valid or broker restrictions prevent safe placement, the EA should skip the affected order rather than chase the market.

3. Risk Management

  • Fixed lot or percentage-based risk.

  • Default risk: 1% of account balance per trade.

  • Buy Stop SL: below the opening range low by 20 points.

  • Sell Stop SL: above the opening range high by 20 points.

  • Take Profit: 1.5 times the initial SL distance (1.5R).

  • Configurable maximum spread filter.

  • Optional break-even at 1R.

  • No martingale, grid or averaging.

Lot sizing must account for the actual entry-to-stop distance and broker volume restrictions.

4. Reliability and Testing

I am particularly concerned about:

  • Duplicate pending orders following a VPS restart.

  • Incorrect risk-based position sizing.

  • Both breakout orders being triggered unexpectedly.

  • Differences between Strategy Tester and demo trading.

  • Broker minimum-distance and order execution restrictions.

The EA should log important decisions, including why an order was placed, cancelled, rejected or skipped.

5. Deliverables

  • Complete MQ5 source code.

  • Compiled EX5 file.

  • Configurable input parameters.

  • Strategy Tester demonstration using EURUSD M5.

  • Brief installation and configuration guide.

  • Code must compile without errors.

No profitability guarantee, extensive optimization or external API integration is required.

6. What I Expect From the Developer

I'm not necessarily looking for the cheapest bid. I value developers who understand the trading workflow, communicate clearly and deliver dependable software.

Please briefly explain:

  • How you would prevent duplicate orders following a terminal restart.

  • How you would handle the opposite pending order when one side triggers.

  • What you would test before delivering the EA.

Please provide a realistic fixed price and delivery time.

I prefer a practical, maintainable solution with clear testing evidence rather than unnecessary complexity.

Thank you.


Han respondido

1
Desarrollador 1
Evaluación
(40)
Proyectos
39
46%
Arbitraje
12
17% / 50%
Caducado
2
5%
Libre
2
Desarrollador 2
Evaluación
(51)
Proyectos
71
37%
Arbitraje
4
25% / 75%
Caducado
1
1%
Libre
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(437)
Proyectos
648
53%
Arbitraje
35
63% / 20%
Caducado
7
1%
Trabaja
4
Desarrollador 4
Evaluación
(106)
Proyectos
129
25%
Arbitraje
25
28% / 56%
Caducado
8
6%
Libre
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(2)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(3)
Proyectos
9
67%
Arbitraje
0
Caducado
0
Trabaja
9
Desarrollador 9
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
11
Desarrollador 11
Evaluación
(264)
Proyectos
310
75%
Arbitraje
15
67% / 0%
Caducado
6
2%
Trabaja
12
Desarrollador 12
Evaluación
(184)
Proyectos
198
46%
Arbitraje
4
50% / 25%
Caducado
1
1%
Trabaja
13
Desarrollador 13
Evaluación
(10)
Proyectos
12
0%
Arbitraje
3
33% / 33%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(20)
Proyectos
26
38%
Arbitraje
6
33% / 50%
Caducado
0
Libre
15
Desarrollador 15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(319)
Proyectos
574
35%
Arbitraje
83
31% / 45%
Caducado
207
36%
Libre
18
Desarrollador 18
Evaluación
(4)
Proyectos
8
0%
Arbitraje
3
33% / 67%
Caducado
4
50%
Libre
19
Desarrollador 19
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
20
Desarrollador 20
Evaluación
(10)
Proyectos
12
33%
Arbitraje
0
Caducado
2
17%
Trabaja
Ha publicado: 1 ejemplo
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
23
Desarrollador 23
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 4 ejemplos
24
Desarrollador 24
Evaluación
(559)
Proyectos
853
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
25
Desarrollador 25
Evaluación
(20)
Proyectos
29
3%
Arbitraje
4
0% / 100%
Caducado
5
17%
Libre
26
Desarrollador 26
Evaluación
(11)
Proyectos
16
50%
Arbitraje
1
100% / 0%
Caducado
4
25%
Libre
27
Desarrollador 27
Evaluación
(60)
Proyectos
94
43%
Arbitraje
4
0% / 100%
Caducado
4
4%
Trabaja
28
Desarrollador 28
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
29
Desarrollador 29
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 2 ejemplos
30
Desarrollador 30
Evaluación
(453)
Proyectos
566
26%
Arbitraje
24
42% / 38%
Caducado
85
15%
Libre
Ha publicado: 6 ejemplos
31
Desarrollador 31
Evaluación
(852)
Proyectos
1469
72%
Arbitraje
123
28% / 47%
Caducado
360
25%
Trabaja
Ha publicado: 3 artículos
32
Desarrollador 32
Evaluación
(12)
Proyectos
19
32%
Arbitraje
0
Caducado
1
5%
Trabajando
33
Desarrollador 33
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
34
Desarrollador 34
Evaluación
(290)
Proyectos
362
30%
Arbitraje
37
27% / 65%
Caducado
10
3%
Trabajando
Ha publicado: 10 ejemplos
35
Desarrollador 35
Evaluación
(16)
Proyectos
30
40%
Arbitraje
3
33% / 67%
Caducado
7
23%
Trabaja
36
Desarrollador 36
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 4 ejemplos
37
Desarrollador 37
Evaluación
(76)
Proyectos
100
56%
Arbitraje
5
80% / 20%
Caducado
5
5%
Trabajando
38
Desarrollador 38
Evaluación
(14)
Proyectos
21
24%
Arbitraje
0
Caducado
2
10%
Libre
Ha publicado: 3 ejemplos
39
Desarrollador 39
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
40
Desarrollador 40
Evaluación
(515)
Proyectos
554
53%
Arbitraje
13
69% / 15%
Caducado
3
1%
Libre
41
Desarrollador 41
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 10 ejemplos
42
Desarrollador 42
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
43
Desarrollador 43
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
44
Desarrollador 44
Evaluación
(19)
Proyectos
22
18%
Arbitraje
9
33% / 44%
Caducado
3
14%
Trabaja
Ha publicado: 1 ejemplo
45
Desarrollador 45
Evaluación
(78)
Proyectos
246
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo, 1 ejemplo
46
Desarrollador 46
Evaluación
(6)
Proyectos
8
38%
Arbitraje
2
50% / 50%
Caducado
2
25%
Libre
47
Desarrollador 47
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
48
Desarrollador 48
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
49
Desarrollador 49
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
50
Desarrollador 50
Evaluación
(3)
Proyectos
3
0%
Arbitraje
0
Caducado
0
Libre
51
Desarrollador 51
Evaluación
(2676)
Proyectos
3419
68%
Arbitraje
77
48% / 14%
Caducado
343
10%
Trabaja
Ha publicado: 1 ejemplo
52
Desarrollador 52
Evaluación
(1)
Proyectos
2
0%
Arbitraje
2
0% / 100%
Caducado
0
Trabaja
53
Desarrollador 53
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
54
Desarrollador 54
Evaluación
(22)
Proyectos
29
3%
Arbitraje
4
25% / 0%
Caducado
3
10%
Libre
55
Desarrollador 55
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
56
Desarrollador 56
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
57
Desarrollador 57
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
58
Desarrollador 58
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
59
Desarrollador 59
Evaluación
(64)
Proyectos
145
46%
Arbitraje
21
38% / 24%
Caducado
32
22%
Libre
60
Desarrollador 60
Evaluación
(369)
Proyectos
459
55%
Arbitraje
24
58% / 17%
Caducado
31
7%
Libre
61
Desarrollador 61
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
62
Desarrollador 62
Evaluación
(13)
Proyectos
23
39%
Arbitraje
8
0% / 50%
Caducado
4
17%
Libre
63
Desarrollador 63
Evaluación
(4)
Proyectos
5
60%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 2 ejemplos
64
Desarrollador 64
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
65
Desarrollador 65
Evaluación
(213)
Proyectos
276
21%
Arbitraje
25
52% / 16%
Caducado
0
Trabaja
66
Desarrollador 66
Evaluación
(25)
Proyectos
31
13%
Arbitraje
14
0% / 79%
Caducado
9
29%
Libre
67
Desarrollador 67
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
68
Desarrollador 68
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
69
Desarrollador 69
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
70
Desarrollador 70
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
71
Desarrollador 71
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
72
Desarrollador 72
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 5 ejemplos
Solicitudes similares
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester
Hi mql5 community, I am actually looking for a dev who applied to my previous job posted few days ago regarding " Need a faithful ready made hft scalper ea robot" He already reached out with an EA which I was validating its performance on my end, but unfortunately the weekend absolutely got my away from internet while have to pay attention to some physical tasks, and during those time I couldn't been able to check
I can pay you 70 USD for consultation if you have something valuable. no scam please, I am too smart to be scammed, Thank you for your patient and attention. Have a nice day for you and your family, May God bless you and your family :)
Hi i'm looking for a trading bot that will trade on mt5/MQL5. The bot must be able to follow trend and works on any pair,chart and symbol. All distance measured with ATR. Trend from a higher time frame (default H1) with a moving average;UP/DOWN. Support and resistance found automatically from recent swing highs and low nothing drawn on the chart. Two kinds of trades, each can be switched on/off. S/R trades; price
I am looking for an EA using MT5, trading XAUUSD on PuPrime-Live6, Standard account. LIMITATIONS No martingale, no grid. Start equity 1000 EUR. Leverate 1:500 Account in USD. PuPrime-Live6 All settings (risk, time, drawdown %, cooldown, lot size) shall be adjustable on init or backtest. VERIFICATIONS The EA needs to reach the profit goals on Actual Ticks, 100ms slippage in backtests for each month 2026. profit goal
Hi All developers, I am looking for a EA which makes minimum 1:5 risk reward ratio with buy stop and sell stop orders placed based on candle open based or candle high low based or any other strategy .... If any having please share it for TEST, After proper TESTING only I will confirm the job... Please read this and respond
I’m looking for an experienced Pine Script developer to build a custom H1 price-action indicator. Requirements: Calculate levels using H1 candles only. Use New York RTH (9:30 AM–4:00 PM), excluding extended hours. Create horizontal levels when candle direction changes; dojis break the sequence. Invalidate levels only when an H1 candle body crosses them, not wicks. Confirm levels after the RTH session closes to
MT5 Trading EA — EMA/RSI Strategy with Risk Management and Trade Protection Hello, I'm looking for an experienced MQL5 developer to build a reliable Expert Advisor for MetaTrader 5 based on a simple trend-following strategy. My main priority is not adding as many features as possible. I want a clean, dependable EA that follows the specified rules consistently in both Strategy Tester and live/demo trading. 1. Trading
To create a unique description that meets the freelance site's requirements, you can type the following: "I am looking for an experienced MQL5 developer to create a custom Forex Expert Advisor. The trading strategy should be based on a moving average crossover system, filtered by the Relative Strength Index indicator. The expert advisor needs to feature distinct strategy modules with adjustable settings for the
Mt5 35+ USD
//+------------------------------------------------------------------+ //| HedgingBasket_EA.mq5 | //| Copyright 2026, Trading Bot | //+------------------------------------------------------------------+ #property copyright "Trading Assistant" #property version "1.00" #include <Trade\Trade.mqh> CTrade trade; //--- Input parameters input group "=== Hedging Settings ===" input double InpLotSize = 0.01; // Lot Size for

Información sobre el proyecto

Presupuesto
80 - 180 USD
Plazo límite de ejecución
a 5 día(s)

Cliente

Encargos realizados3
Número de arbitrajes0