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

MQL5 Esperti

Specifiche

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.


Con risposta

1
Sviluppatore 1
Valutazioni
(40)
Progetti
39
46%
Arbitraggio
12
17% / 50%
In ritardo
2
5%
Gratuito
2
Sviluppatore 2
Valutazioni
(51)
Progetti
71
37%
Arbitraggio
4
25% / 75%
In ritardo
1
1%
Gratuito
Pubblicati: 1 codice
3
Sviluppatore 3
Valutazioni
(437)
Progetti
648
53%
Arbitraggio
35
63% / 20%
In ritardo
7
1%
In elaborazione
4
Sviluppatore 4
Valutazioni
(106)
Progetti
129
25%
Arbitraggio
25
28% / 56%
In ritardo
8
6%
Gratuito
5
Sviluppatore 5
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
7
Sviluppatore 7
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(3)
Progetti
9
67%
Arbitraggio
0
In ritardo
0
In elaborazione
9
Sviluppatore 9
Valutazioni
(2)
Progetti
2
50%
Arbitraggio
0
In ritardo
0
Gratuito
10
Sviluppatore 10
Valutazioni
(2)
Progetti
2
50%
Arbitraggio
0
In ritardo
1
50%
Gratuito
11
Sviluppatore 11
Valutazioni
(264)
Progetti
310
75%
Arbitraggio
15
67% / 0%
In ritardo
6
2%
In elaborazione
12
Sviluppatore 12
Valutazioni
(184)
Progetti
198
46%
Arbitraggio
4
50% / 25%
In ritardo
1
1%
In elaborazione
13
Sviluppatore 13
Valutazioni
(10)
Progetti
12
0%
Arbitraggio
3
33% / 33%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(20)
Progetti
26
38%
Arbitraggio
6
33% / 50%
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
16
Sviluppatore 16
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
17
Sviluppatore 17
Valutazioni
(319)
Progetti
574
35%
Arbitraggio
83
31% / 45%
In ritardo
207
36%
Gratuito
18
Sviluppatore 18
Valutazioni
(4)
Progetti
8
0%
Arbitraggio
3
33% / 67%
In ritardo
4
50%
Gratuito
19
Sviluppatore 19
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
20
Sviluppatore 20
Valutazioni
(10)
Progetti
12
33%
Arbitraggio
0
In ritardo
2
17%
In elaborazione
Pubblicati: 1 codice
21
Sviluppatore 21
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
22
Sviluppatore 22
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
23
Sviluppatore 23
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 4 codici
24
Sviluppatore 24
Valutazioni
(559)
Progetti
853
61%
Arbitraggio
33
27% / 45%
In ritardo
24
3%
Gratuito
Pubblicati: 1 codice
25
Sviluppatore 25
Valutazioni
(20)
Progetti
29
3%
Arbitraggio
4
0% / 100%
In ritardo
5
17%
Gratuito
26
Sviluppatore 26
Valutazioni
(11)
Progetti
16
50%
Arbitraggio
1
100% / 0%
In ritardo
4
25%
Gratuito
27
Sviluppatore 27
Valutazioni
(60)
Progetti
94
43%
Arbitraggio
4
0% / 100%
In ritardo
4
4%
In elaborazione
28
Sviluppatore 28
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
29
Sviluppatore 29
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
0
In ritardo
0
In elaborazione
Pubblicati: 2 codici
30
Sviluppatore 30
Valutazioni
(453)
Progetti
566
26%
Arbitraggio
24
42% / 38%
In ritardo
85
15%
Gratuito
Pubblicati: 6 codici
31
Sviluppatore 31
Valutazioni
(852)
Progetti
1469
72%
Arbitraggio
123
28% / 47%
In ritardo
360
25%
In elaborazione
Pubblicati: 3 articoli
32
Sviluppatore 32
Valutazioni
(12)
Progetti
19
32%
Arbitraggio
0
In ritardo
1
5%
Caricato
33
Sviluppatore 33
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
34
Sviluppatore 34
Valutazioni
(290)
Progetti
362
30%
Arbitraggio
37
27% / 65%
In ritardo
10
3%
Caricato
Pubblicati: 10 codici
35
Sviluppatore 35
Valutazioni
(16)
Progetti
30
40%
Arbitraggio
3
33% / 67%
In ritardo
7
23%
In elaborazione
36
Sviluppatore 36
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 4 codici
37
Sviluppatore 37
Valutazioni
(76)
Progetti
100
56%
Arbitraggio
5
80% / 20%
In ritardo
5
5%
Caricato
38
Sviluppatore 38
Valutazioni
(14)
Progetti
21
24%
Arbitraggio
0
In ritardo
2
10%
Gratuito
Pubblicati: 3 codici
39
Sviluppatore 39
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
40
Sviluppatore 40
Valutazioni
(515)
Progetti
554
53%
Arbitraggio
13
69% / 15%
In ritardo
3
1%
Gratuito
41
Sviluppatore 41
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 10 codici
42
Sviluppatore 42
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
43
Sviluppatore 43
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
44
Sviluppatore 44
Valutazioni
(19)
Progetti
22
18%
Arbitraggio
9
33% / 44%
In ritardo
3
14%
In elaborazione
Pubblicati: 1 codice
45
Sviluppatore 45
Valutazioni
(78)
Progetti
246
74%
Arbitraggio
7
100% / 0%
In ritardo
1
0%
Gratuito
Pubblicati: 1 articolo, 1 codice
46
Sviluppatore 46
Valutazioni
(6)
Progetti
8
38%
Arbitraggio
2
50% / 50%
In ritardo
2
25%
Gratuito
47
Sviluppatore 47
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
48
Sviluppatore 48
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
49
Sviluppatore 49
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
50
Sviluppatore 50
Valutazioni
(3)
Progetti
3
0%
Arbitraggio
0
In ritardo
0
Gratuito
51
Sviluppatore 51
Valutazioni
(2676)
Progetti
3419
68%
Arbitraggio
77
48% / 14%
In ritardo
343
10%
In elaborazione
Pubblicati: 1 codice
52
Sviluppatore 52
Valutazioni
(1)
Progetti
2
0%
Arbitraggio
2
0% / 100%
In ritardo
0
In elaborazione
53
Sviluppatore 53
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
54
Sviluppatore 54
Valutazioni
(22)
Progetti
29
3%
Arbitraggio
4
25% / 0%
In ritardo
3
10%
Gratuito
55
Sviluppatore 55
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
56
Sviluppatore 56
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
57
Sviluppatore 57
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
58
Sviluppatore 58
Valutazioni
(2)
Progetti
2
50%
Arbitraggio
0
In ritardo
0
Gratuito
59
Sviluppatore 59
Valutazioni
(64)
Progetti
145
46%
Arbitraggio
21
38% / 24%
In ritardo
32
22%
Gratuito
60
Sviluppatore 60
Valutazioni
(369)
Progetti
459
55%
Arbitraggio
24
58% / 17%
In ritardo
31
7%
Gratuito
61
Sviluppatore 61
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
62
Sviluppatore 62
Valutazioni
(13)
Progetti
23
39%
Arbitraggio
8
0% / 50%
In ritardo
4
17%
Gratuito
63
Sviluppatore 63
Valutazioni
(4)
Progetti
6
67%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 2 codici
64
Sviluppatore 64
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
65
Sviluppatore 65
Valutazioni
(213)
Progetti
276
21%
Arbitraggio
25
52% / 16%
In ritardo
0
In elaborazione
66
Sviluppatore 66
Valutazioni
(25)
Progetti
31
13%
Arbitraggio
14
0% / 79%
In ritardo
9
29%
Gratuito
67
Sviluppatore 67
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
68
Sviluppatore 68
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
69
Sviluppatore 69
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 1 codice
70
Sviluppatore 70
Valutazioni
Progetti
0
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
71
Sviluppatore 71
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
72
Sviluppatore 72
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 5 codici
73
Sviluppatore 73
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
74
Sviluppatore 74
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
75
Sviluppatore 75
Valutazioni
(1)
Progetti
2
50%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 5 codici
76
Sviluppatore 76
Valutazioni
(12)
Progetti
16
0%
Arbitraggio
0
In ritardo
2
13%
Gratuito
77
Sviluppatore 77
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
78
Sviluppatore 78
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
79
Sviluppatore 79
Valutazioni
(89)
Progetti
254
78%
Arbitraggio
9
22% / 56%
In ritardo
36
14%
In elaborazione
Pubblicati: 3 articoli, 26 codici
80
Sviluppatore 80
Valutazioni
(31)
Progetti
38
53%
Arbitraggio
2
50% / 50%
In ritardo
3
8%
Gratuito
Ordini simili
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
1. Overview Build an MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD (Gold) as a scalper, using Heiken Ashi candles and a 50 EMA for entries. 2. Platform and symbol MetaTrader 5, Expert Advisor (.mq5 and compiled .ex5) Symbol: XAUUSD (must work with broker suffixes, e.g. XAUUSDm) Default timeframe: M5 (configurable; M1 to M15 should work) 3. Indicators Heiken Ashi candles, calculated inside the EA (no
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

Informazioni sul progetto

Budget
80 - 180 USD
Scadenze
a 5 giorno(i)

Cliente

Ordini effettuati3
Numero di arbitraggi0