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

MQL5 Experts

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(40)
Projets
39
46%
Arbitrage
12
17% / 50%
En retard
2
5%
Gratuit
2
Développeur 2
Évaluation
(51)
Projets
71
37%
Arbitrage
4
25% / 75%
En retard
1
1%
Gratuit
Publié : 1 code
3
Développeur 3
Évaluation
(437)
Projets
648
53%
Arbitrage
35
63% / 20%
En retard
7
1%
Travail
4
Développeur 4
Évaluation
(106)
Projets
129
25%
Arbitrage
25
28% / 56%
En retard
8
6%
Gratuit
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Développeur 6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(2)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
8
Développeur 8
Évaluation
(3)
Projets
9
67%
Arbitrage
0
En retard
0
Travail
9
Développeur 9
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
1
50%
Gratuit
11
Développeur 11
Évaluation
(264)
Projets
310
75%
Arbitrage
15
67% / 0%
En retard
6
2%
Travail
12
Développeur 12
Évaluation
(184)
Projets
198
46%
Arbitrage
4
50% / 25%
En retard
1
1%
Travail
13
Développeur 13
Évaluation
(10)
Projets
12
0%
Arbitrage
3
33% / 33%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(20)
Projets
26
38%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
15
Développeur 15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Développeur 17
Évaluation
(319)
Projets
574
35%
Arbitrage
83
31% / 45%
En retard
207
36%
Gratuit
18
Développeur 18
Évaluation
(4)
Projets
8
0%
Arbitrage
3
33% / 67%
En retard
4
50%
Gratuit
19
Développeur 19
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
20
Développeur 20
Évaluation
(10)
Projets
12
33%
Arbitrage
0
En retard
2
17%
Travail
Publié : 1 code
21
Développeur 21
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
22
Développeur 22
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
23
Développeur 23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
24
Développeur 24
Évaluation
(559)
Projets
853
61%
Arbitrage
33
27% / 45%
En retard
24
3%
Gratuit
Publié : 1 code
25
Développeur 25
Évaluation
(20)
Projets
29
3%
Arbitrage
4
0% / 100%
En retard
5
17%
Gratuit
26
Développeur 26
Évaluation
(11)
Projets
16
50%
Arbitrage
1
100% / 0%
En retard
4
25%
Gratuit
27
Développeur 27
Évaluation
(60)
Projets
94
43%
Arbitrage
4
0% / 100%
En retard
4
4%
Travail
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Travail
Publié : 2 codes
30
Développeur 30
Évaluation
(453)
Projets
566
26%
Arbitrage
24
42% / 38%
En retard
85
15%
Gratuit
Publié : 6 codes
31
Développeur 31
Évaluation
(852)
Projets
1469
72%
Arbitrage
123
28% / 47%
En retard
360
25%
Travail
Publié : 3 articles
32
Développeur 32
Évaluation
(12)
Projets
19
32%
Arbitrage
0
En retard
1
5%
Chargé
33
Développeur 33
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
34
Développeur 34
Évaluation
(290)
Projets
362
30%
Arbitrage
37
27% / 65%
En retard
10
3%
Chargé
Publié : 10 codes
35
Développeur 35
Évaluation
(16)
Projets
30
40%
Arbitrage
3
33% / 67%
En retard
7
23%
Travail
36
Développeur 36
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
37
Développeur 37
Évaluation
(76)
Projets
100
56%
Arbitrage
5
80% / 20%
En retard
5
5%
Chargé
38
Développeur 38
Évaluation
(14)
Projets
21
24%
Arbitrage
0
En retard
2
10%
Gratuit
Publié : 3 codes
39
Développeur 39
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
40
Développeur 40
Évaluation
(515)
Projets
554
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
41
Développeur 41
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 10 codes
42
Développeur 42
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
43
Développeur 43
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
44
Développeur 44
Évaluation
(19)
Projets
22
18%
Arbitrage
9
33% / 44%
En retard
3
14%
Travail
Publié : 1 code
45
Développeur 45
Évaluation
(78)
Projets
246
74%
Arbitrage
7
100% / 0%
En retard
1
0%
Gratuit
Publié : 1 article, 1 code
46
Développeur 46
Évaluation
(6)
Projets
8
38%
Arbitrage
2
50% / 50%
En retard
2
25%
Gratuit
47
Développeur 47
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
48
Développeur 48
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
49
Développeur 49
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
50
Développeur 50
Évaluation
(3)
Projets
3
0%
Arbitrage
0
En retard
0
Gratuit
51
Développeur 51
Évaluation
(2676)
Projets
3419
68%
Arbitrage
77
48% / 14%
En retard
343
10%
Travail
Publié : 1 code
52
Développeur 52
Évaluation
(1)
Projets
2
0%
Arbitrage
2
0% / 100%
En retard
0
Travail
53
Développeur 53
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
54
Développeur 54
Évaluation
(22)
Projets
29
3%
Arbitrage
4
25% / 0%
En retard
3
10%
Gratuit
55
Développeur 55
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
56
Développeur 56
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
57
Développeur 57
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
58
Développeur 58
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
0
Gratuit
59
Développeur 59
Évaluation
(64)
Projets
145
46%
Arbitrage
21
38% / 24%
En retard
32
22%
Gratuit
60
Développeur 60
Évaluation
(369)
Projets
459
55%
Arbitrage
24
58% / 17%
En retard
31
7%
Gratuit
61
Développeur 61
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
62
Développeur 62
Évaluation
(13)
Projets
23
39%
Arbitrage
8
0% / 50%
En retard
4
17%
Gratuit
63
Développeur 63
Évaluation
(4)
Projets
6
67%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 codes
64
Développeur 64
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
65
Développeur 65
Évaluation
(213)
Projets
276
21%
Arbitrage
25
52% / 16%
En retard
0
Travail
66
Développeur 66
Évaluation
(25)
Projets
31
13%
Arbitrage
14
0% / 79%
En retard
9
29%
Gratuit
67
Développeur 67
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
68
Développeur 68
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
69
Développeur 69
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
70
Développeur 70
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
71
Développeur 71
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
72
Développeur 72
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 5 codes
73
Développeur 73
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
I I am looking for an experienced MQL5 developer to build a robust, fully automated Expert Advisor (EA) for MetaTrader 5 based on a moving average pullback strategy. The EA must be optimized for multi-symbol and multi-timeframe processing, capable of running on a single chart while scanning and trading a user-defined list of currency pairs. 1. Core Strategy Logic * Trend Zone: The strategy utilizes the zone between
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

Informations sur le projet

Budget
80 - 180 USD
Délais
à 5 jour(s)

Client

Commandes passées3
Nombre d'arbitrages0