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

MQL5 Experts

Termos de Referência

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.


Respondido

1
Desenvolvedor 1
Classificação
(40)
Projetos
39
46%
Arbitragem
12
17% / 50%
Expirado
2
5%
Livre
2
Desenvolvedor 2
Classificação
(51)
Projetos
71
37%
Arbitragem
4
25% / 75%
Expirado
1
1%
Livre
Publicou: 1 código
3
Desenvolvedor 3
Classificação
(437)
Projetos
648
53%
Arbitragem
35
63% / 20%
Expirado
7
1%
Trabalhando
4
Desenvolvedor 4
Classificação
(106)
Projetos
129
25%
Arbitragem
25
28% / 56%
Expirado
8
6%
Livre
5
Desenvolvedor 5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(2)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(3)
Projetos
9
67%
Arbitragem
0
Expirado
0
Trabalhando
9
Desenvolvedor 9
Classificação
(2)
Projetos
2
50%
Arbitragem
0
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Trabalhando
11
Desenvolvedor 11
Classificação
(264)
Projetos
310
75%
Arbitragem
15
67% / 0%
Expirado
6
2%
Trabalhando
12
Desenvolvedor 12
Classificação
(184)
Projetos
198
46%
Arbitragem
4
50% / 25%
Expirado
1
1%
Trabalhando
13
Desenvolvedor 13
Classificação
(10)
Projetos
12
0%
Arbitragem
3
33% / 33%
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(20)
Projetos
26
38%
Arbitragem
6
33% / 50%
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
(319)
Projetos
574
35%
Arbitragem
83
31% / 45%
Expirado
207
36%
Livre
18
Desenvolvedor 18
Classificação
(4)
Projetos
8
0%
Arbitragem
3
33% / 67%
Expirado
4
50%
Livre
19
Desenvolvedor 19
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
(10)
Projetos
12
33%
Arbitragem
0
Expirado
2
17%
Trabalhando
Publicou: 1 código
21
Desenvolvedor 21
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
23
Desenvolvedor 23
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 4 códigos
24
Desenvolvedor 24
Classificação
(559)
Projetos
853
61%
Arbitragem
33
27% / 45%
Expirado
24
3%
Livre
Publicou: 1 código
25
Desenvolvedor 25
Classificação
(20)
Projetos
29
3%
Arbitragem
4
0% / 100%
Expirado
5
17%
Livre
26
Desenvolvedor 26
Classificação
(11)
Projetos
16
50%
Arbitragem
1
100% / 0%
Expirado
4
25%
Livre
27
Desenvolvedor 27
Classificação
(60)
Projetos
94
43%
Arbitragem
4
0% / 100%
Expirado
4
4%
Trabalhando
28
Desenvolvedor 28
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
29
Desenvolvedor 29
Classificação
(2)
Projetos
2
0%
Arbitragem
0
Expirado
0
Trabalhando
Publicou: 2 códigos
30
Desenvolvedor 30
Classificação
(453)
Projetos
566
26%
Arbitragem
24
42% / 38%
Expirado
85
15%
Livre
Publicou: 6 códigos
31
Desenvolvedor 31
Classificação
(852)
Projetos
1469
72%
Arbitragem
123
28% / 47%
Expirado
360
25%
Trabalhando
Publicou: 3 artigos
32
Desenvolvedor 32
Classificação
(12)
Projetos
19
32%
Arbitragem
0
Expirado
1
5%
Carregado
33
Desenvolvedor 33
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
34
Desenvolvedor 34
Classificação
(290)
Projetos
362
30%
Arbitragem
37
27% / 65%
Expirado
10
3%
Carregado
Publicou: 10 códigos
35
Desenvolvedor 35
Classificação
(16)
Projetos
30
40%
Arbitragem
3
33% / 67%
Expirado
7
23%
Trabalhando
36
Desenvolvedor 36
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 4 códigos
37
Desenvolvedor 37
Classificação
(76)
Projetos
100
56%
Arbitragem
5
80% / 20%
Expirado
5
5%
Carregado
38
Desenvolvedor 38
Classificação
(14)
Projetos
21
24%
Arbitragem
0
Expirado
2
10%
Livre
Publicou: 3 códigos
39
Desenvolvedor 39
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
40
Desenvolvedor 40
Classificação
(515)
Projetos
554
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Livre
41
Desenvolvedor 41
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 10 códigos
42
Desenvolvedor 42
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
43
Desenvolvedor 43
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
44
Desenvolvedor 44
Classificação
(19)
Projetos
22
18%
Arbitragem
9
33% / 44%
Expirado
3
14%
Trabalhando
Publicou: 1 código
45
Desenvolvedor 45
Classificação
(78)
Projetos
246
74%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
Publicou: 1 artigo, 1 código
46
Desenvolvedor 46
Classificação
(6)
Projetos
8
38%
Arbitragem
2
50% / 50%
Expirado
2
25%
Livre
47
Desenvolvedor 47
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
48
Desenvolvedor 48
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
49
Desenvolvedor 49
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
50
Desenvolvedor 50
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
51
Desenvolvedor 51
Classificação
(2676)
Projetos
3419
68%
Arbitragem
77
48% / 14%
Expirado
343
10%
Trabalhando
Publicou: 1 código
52
Desenvolvedor 52
Classificação
(1)
Projetos
2
0%
Arbitragem
2
0% / 100%
Expirado
0
Trabalhando
53
Desenvolvedor 53
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
54
Desenvolvedor 54
Classificação
(22)
Projetos
29
3%
Arbitragem
4
25% / 0%
Expirado
3
10%
Livre
55
Desenvolvedor 55
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
56
Desenvolvedor 56
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
57
Desenvolvedor 57
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
58
Desenvolvedor 58
Classificação
(2)
Projetos
2
50%
Arbitragem
0
Expirado
0
Livre
59
Desenvolvedor 59
Classificação
(64)
Projetos
145
46%
Arbitragem
21
38% / 24%
Expirado
32
22%
Livre
60
Desenvolvedor 60
Classificação
(369)
Projetos
459
55%
Arbitragem
24
58% / 17%
Expirado
31
7%
Livre
61
Desenvolvedor 61
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
62
Desenvolvedor 62
Classificação
(13)
Projetos
23
39%
Arbitragem
8
0% / 50%
Expirado
4
17%
Livre
63
Desenvolvedor 63
Classificação
(4)
Projetos
5
60%
Arbitragem
0
Expirado
0
Trabalhando
Publicou: 2 códigos
64
Desenvolvedor 64
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
65
Desenvolvedor 65
Classificação
(213)
Projetos
276
21%
Arbitragem
25
52% / 16%
Expirado
0
Trabalhando
66
Desenvolvedor 66
Classificação
(25)
Projetos
31
13%
Arbitragem
14
0% / 79%
Expirado
9
29%
Livre
67
Desenvolvedor 67
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
68
Desenvolvedor 68
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
69
Desenvolvedor 69
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 1 código
70
Desenvolvedor 70
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
71
Desenvolvedor 71
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
72
Desenvolvedor 72
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 5 códigos
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
80 - 180 USD
Prazo
para 5 dias

Cliente

Pedidos postados3
Número de arbitragens0