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

MQL5 Uzmanlar

Şartname

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.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(40)
Projeler
39
46%
Arabuluculuk
12
17% / 50%
Süresi dolmuş
2
5%
Serbest
2
Geliştirici 2
Derecelendirme
(51)
Projeler
71
37%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
1
1%
Serbest
Yayınlandı: 1 kod
3
Geliştirici 3
Derecelendirme
(437)
Projeler
648
53%
Arabuluculuk
35
63% / 20%
Süresi dolmuş
7
1%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(106)
Projeler
129
25%
Arabuluculuk
25
28% / 56%
Süresi dolmuş
8
6%
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(3)
Projeler
9
67%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
9
Geliştirici 9
Derecelendirme
(2)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
11
Geliştirici 11
Derecelendirme
(264)
Projeler
310
75%
Arabuluculuk
15
67% / 0%
Süresi dolmuş
6
2%
Çalışıyor
12
Geliştirici 12
Derecelendirme
(184)
Projeler
198
46%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
1
1%
Çalışıyor
13
Geliştirici 13
Derecelendirme
(10)
Projeler
12
0%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(20)
Projeler
26
38%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
0
Serbest
15
Geliştirici 15
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
16
Geliştirici 16
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
17
Geliştirici 17
Derecelendirme
(319)
Projeler
574
35%
Arabuluculuk
83
31% / 45%
Süresi dolmuş
207
36%
Serbest
18
Geliştirici 18
Derecelendirme
(4)
Projeler
8
0%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
4
50%
Serbest
19
Geliştirici 19
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
20
Geliştirici 20
Derecelendirme
(10)
Projeler
12
33%
Arabuluculuk
0
Süresi dolmuş
2
17%
Çalışıyor
Yayınlandı: 1 kod
21
Geliştirici 21
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
22
Geliştirici 22
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
24
Geliştirici 24
Derecelendirme
(559)
Projeler
853
61%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
24
3%
Serbest
Yayınlandı: 1 kod
25
Geliştirici 25
Derecelendirme
(20)
Projeler
29
3%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
5
17%
Serbest
26
Geliştirici 26
Derecelendirme
(11)
Projeler
16
50%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
4
25%
Serbest
27
Geliştirici 27
Derecelendirme
(60)
Projeler
94
43%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
4%
Çalışıyor
28
Geliştirici 28
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
29
Geliştirici 29
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 2 kod
30
Geliştirici 30
Derecelendirme
(453)
Projeler
566
26%
Arabuluculuk
24
42% / 38%
Süresi dolmuş
85
15%
Serbest
Yayınlandı: 6 kod
31
Geliştirici 31
Derecelendirme
(852)
Projeler
1469
72%
Arabuluculuk
123
28% / 47%
Süresi dolmuş
360
25%
Çalışıyor
Yayınlandı: 3 makale
32
Geliştirici 32
Derecelendirme
(12)
Projeler
19
32%
Arabuluculuk
0
Süresi dolmuş
1
5%
Yüklendi
33
Geliştirici 33
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
34
Geliştirici 34
Derecelendirme
(290)
Projeler
362
30%
Arabuluculuk
37
27% / 65%
Süresi dolmuş
10
3%
Yüklendi
Yayınlandı: 10 kod
35
Geliştirici 35
Derecelendirme
(16)
Projeler
30
40%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
7
23%
Çalışıyor
36
Geliştirici 36
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
37
Geliştirici 37
Derecelendirme
(76)
Projeler
100
56%
Arabuluculuk
5
80% / 20%
Süresi dolmuş
5
5%
Yüklendi
38
Geliştirici 38
Derecelendirme
(14)
Projeler
21
24%
Arabuluculuk
0
Süresi dolmuş
2
10%
Serbest
Yayınlandı: 3 kod
39
Geliştirici 39
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
40
Geliştirici 40
Derecelendirme
(515)
Projeler
554
53%
Arabuluculuk
13
69% / 15%
Süresi dolmuş
3
1%
Serbest
41
Geliştirici 41
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 10 kod
42
Geliştirici 42
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
43
Geliştirici 43
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
44
Geliştirici 44
Derecelendirme
(19)
Projeler
22
18%
Arabuluculuk
9
33% / 44%
Süresi dolmuş
3
14%
Çalışıyor
Yayınlandı: 1 kod
45
Geliştirici 45
Derecelendirme
(78)
Projeler
246
74%
Arabuluculuk
7
100% / 0%
Süresi dolmuş
1
0%
Serbest
Yayınlandı: 1 makale, 1 kod
46
Geliştirici 46
Derecelendirme
(6)
Projeler
8
38%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
2
25%
Serbest
47
Geliştirici 47
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
48
Geliştirici 48
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
49
Geliştirici 49
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
50
Geliştirici 50
Derecelendirme
(3)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
51
Geliştirici 51
Derecelendirme
(2676)
Projeler
3419
68%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
343
10%
Çalışıyor
Yayınlandı: 1 kod
52
Geliştirici 52
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Çalışıyor
53
Geliştirici 53
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
54
Geliştirici 54
Derecelendirme
(22)
Projeler
29
3%
Arabuluculuk
4
25% / 0%
Süresi dolmuş
3
10%
Serbest
55
Geliştirici 55
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
56
Geliştirici 56
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
57
Geliştirici 57
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
58
Geliştirici 58
Derecelendirme
(2)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
59
Geliştirici 59
Derecelendirme
(64)
Projeler
145
46%
Arabuluculuk
21
38% / 24%
Süresi dolmuş
32
22%
Serbest
60
Geliştirici 60
Derecelendirme
(369)
Projeler
459
55%
Arabuluculuk
24
58% / 17%
Süresi dolmuş
31
7%
Serbest
61
Geliştirici 61
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
62
Geliştirici 62
Derecelendirme
(13)
Projeler
23
39%
Arabuluculuk
8
0% / 50%
Süresi dolmuş
4
17%
Serbest
63
Geliştirici 63
Derecelendirme
(4)
Projeler
5
60%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 2 kod
64
Geliştirici 64
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
65
Geliştirici 65
Derecelendirme
(213)
Projeler
276
21%
Arabuluculuk
25
52% / 16%
Süresi dolmuş
0
Çalışıyor
66
Geliştirici 66
Derecelendirme
(25)
Projeler
31
13%
Arabuluculuk
14
0% / 79%
Süresi dolmuş
9
29%
Serbest
67
Geliştirici 67
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
68
Geliştirici 68
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
69
Geliştirici 69
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
70
Geliştirici 70
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
71
Geliştirici 71
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
72
Geliştirici 72
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 5 kod
Benzer siparişler
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

Proje bilgisi

Bütçe
80 - 180 USD
Son teslim tarihi
to 5 gün

Müşteri

Verilmiş siparişler3
Arabuluculuk sayısı0