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

MQL5 Experts

Specification

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.


Responded

1
Developer 1
Rating
(40)
Projects
39
46%
Arbitration
12
17% / 50%
Overdue
2
5%
Free
2
Developer 2
Rating
(51)
Projects
71
37%
Arbitration
4
25% / 75%
Overdue
1
1%
Free
Published: 1 code
3
Developer 3
Rating
(437)
Projects
648
53%
Arbitration
35
63% / 20%
Overdue
7
1%
Working
4
Developer 4
Rating
(106)
Projects
129
25%
Arbitration
25
28% / 56%
Overdue
8
6%
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(2)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
8
Developer 8
Rating
(3)
Projects
9
67%
Arbitration
0
Overdue
0
Working
9
Developer 9
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Working
11
Developer 11
Rating
(264)
Projects
310
75%
Arbitration
15
67% / 0%
Overdue
6
2%
Working
12
Developer 12
Rating
(184)
Projects
198
46%
Arbitration
4
50% / 25%
Overdue
1
1%
Working
13
Developer 13
Rating
(10)
Projects
12
0%
Arbitration
3
33% / 33%
Overdue
0
Free
14
Developer 14
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(319)
Projects
574
35%
Arbitration
83
31% / 45%
Overdue
207
36%
Free
18
Developer 18
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(10)
Projects
12
33%
Arbitration
0
Overdue
2
17%
Working
Published: 1 code
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
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
Published: 4 codes
24
Developer 24
Rating
(559)
Projects
853
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Free
Published: 1 code
25
Developer 25
Rating
(20)
Projects
29
3%
Arbitration
4
0% / 100%
Overdue
5
17%
Free
26
Developer 26
Rating
(11)
Projects
16
50%
Arbitration
1
100% / 0%
Overdue
4
25%
Free
27
Developer 27
Rating
(60)
Projects
94
43%
Arbitration
4
0% / 100%
Overdue
4
4%
Working
28
Developer 28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Working
Published: 2 codes
30
Developer 30
Rating
(453)
Projects
566
26%
Arbitration
24
42% / 38%
Overdue
85
15%
Free
Published: 6 codes
31
Developer 31
Rating
(852)
Projects
1469
72%
Arbitration
123
28% / 47%
Overdue
360
25%
Working
Published: 3 articles
32
Developer 32
Rating
(12)
Projects
19
32%
Arbitration
0
Overdue
1
5%
Loaded
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
(290)
Projects
362
30%
Arbitration
37
27% / 65%
Overdue
10
3%
Loaded
Published: 10 codes
35
Developer 35
Rating
(16)
Projects
30
40%
Arbitration
3
33% / 67%
Overdue
7
23%
Working
36
Developer 36
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 4 codes
37
Developer 37
Rating
(76)
Projects
100
56%
Arbitration
5
80% / 20%
Overdue
5
5%
Loaded
38
Developer 38
Rating
(14)
Projects
21
24%
Arbitration
0
Overdue
2
10%
Free
Published: 3 codes
39
Developer 39
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
40
Developer 40
Rating
(515)
Projects
554
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
41
Developer 41
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 10 codes
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
(19)
Projects
22
18%
Arbitration
9
33% / 44%
Overdue
3
14%
Working
Published: 1 code
45
Developer 45
Rating
(78)
Projects
246
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article, 1 code
46
Developer 46
Rating
(6)
Projects
8
38%
Arbitration
2
50% / 50%
Overdue
2
25%
Free
47
Developer 47
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
48
Developer 48
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
49
Developer 49
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
50
Developer 50
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Free
51
Developer 51
Rating
(2676)
Projects
3419
68%
Arbitration
77
48% / 14%
Overdue
343
10%
Working
Published: 1 code
52
Developer 52
Rating
(1)
Projects
2
0%
Arbitration
2
0% / 100%
Overdue
0
Working
53
Developer 53
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
54
Developer 54
Rating
(22)
Projects
29
3%
Arbitration
4
25% / 0%
Overdue
3
10%
Free
55
Developer 55
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
56
Developer 56
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
57
Developer 57
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
58
Developer 58
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
0
Free
59
Developer 59
Rating
(64)
Projects
145
46%
Arbitration
21
38% / 24%
Overdue
32
22%
Free
60
Developer 60
Rating
(369)
Projects
459
55%
Arbitration
24
58% / 17%
Overdue
31
7%
Free
61
Developer 61
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
62
Developer 62
Rating
(13)
Projects
23
39%
Arbitration
8
0% / 50%
Overdue
4
17%
Free
63
Developer 63
Rating
(4)
Projects
5
60%
Arbitration
0
Overdue
0
Working
Published: 2 codes
64
Developer 64
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
65
Developer 65
Rating
(213)
Projects
276
21%
Arbitration
25
52% / 16%
Overdue
0
Working
66
Developer 66
Rating
(25)
Projects
31
13%
Arbitration
14
0% / 79%
Overdue
9
29%
Free
67
Developer 67
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
68
Developer 68
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
69
Developer 69
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
Similar orders
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

Project information

Budget
80 - 180 USD
Deadline
to 5 day(s)

Customer

Placed orders3
Arbitrage count0