Custom MT5 EA: Trailing Pending Stop Order with Position Reversal

MQL5 Uzmanlar

Şartname

Hello, I need a custom Expert Advisor (EA) for MetaTrader 5 that implements a specific trend-following and reversal strategy using trailing pending orders. Here is the exact logic I need:

1. Initial Entry: The EA should open a Market BUY position (or I can open it manually, please include an option for both).
2. Trailing Sell Stop: As soon as the BUY position is open, the EA must place a SELL STOP pending order at a fixed distance (e.g., X pips) below the current market price.
3. Trailing Mechanism: As the market price moves UP, the pending SELL STOP order must automatically trail (move up) behind the price, maintaining the exact X pips distance. It should never move down.
4. Reversal Trigger: When a bearish candle forms and the price drops to hit the trailed SELL STOP order:
   - The current BUY position must be closed immediately.
   - The SELL STOP order triggers, becoming an active SELL position.
5. Opposite Loop: Now that a SELL position is active, the EA must place a BUY STOP pending order X pips above the current price and trail it DOWN as the price drops. When the price reverses and hits this BUY STOP, the SELL position closes, a new BUY position opens, and the cycle repeats.

Inputs Needed in Settings:
- Distance in Pips (for the trailing pending orders)
- Lot Size
- Magic Number
- Max Spread Allowed

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(634)
Projeler
743
34%
Arabuluculuk
49
53% / 39%
Süresi dolmuş
14
2%
Yüklendi
2
Geliştirici 2
Derecelendirme
(465)
Projeler
815
49%
Arabuluculuk
76
21% / 50%
Süresi dolmuş
142
17%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(438)
Projeler
649
53%
Arabuluculuk
35
63% / 20%
Süresi dolmuş
7
1%
Çalışıyor
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 15 kod
6
Geliştirici 6
Derecelendirme
(3)
Projeler
3
67%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
7
Geliştirici 7
Derecelendirme
(111)
Projeler
184
25%
Arabuluculuk
25
16% / 76%
Süresi dolmuş
16
9%
Serbest
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
(101)
Projeler
141
52%
Arabuluculuk
5
40% / 60%
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
(22)
Projeler
25
24%
Arabuluculuk
5
20% / 80%
Süresi dolmuş
1
4%
Serbest
Yayınlandı: 11 kod
11
Geliştirici 11
Derecelendirme
(215)
Projeler
280
21%
Arabuluculuk
27
56% / 15%
Süresi dolmuş
0
Yüklendi
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(33)
Projeler
38
21%
Arabuluculuk
5
0% / 60%
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(1)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
1
50%
Çalışıyor
15
Geliştirici 15
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
16
Geliştirici 16
Derecelendirme
(8)
Projeler
8
0%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
1
13%
Çalışıyor
17
Geliştirici 17
Derecelendirme
(4)
Projeler
10
60%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
18
Geliştirici 18
Derecelendirme
(19)
Projeler
22
18%
Arabuluculuk
9
33% / 44%
Süresi dolmuş
3
14%
Çalışıyor
Yayınlandı: 1 kod
19
Geliştirici 19
Derecelendirme
(215)
Projeler
317
34%
Arabuluculuk
63
37% / 40%
Süresi dolmuş
102
32%
Serbest
20
Geliştirici 20
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
21
Geliştirici 21
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
22
Geliştirici 22
Derecelendirme
(6)
Projeler
8
38%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
(618)
Projeler
1430
59%
Arabuluculuk
31
81% / 0%
Süresi dolmuş
10
1%
Serbest
24
Geliştirici 24
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 3 kod
25
Geliştirici 25
Derecelendirme
(4)
Projeler
7
57%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
0
Serbest
26
Geliştirici 26
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
27
Geliştirici 27
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
28
Geliştirici 28
Derecelendirme
(7)
Projeler
6
0%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
2
33%
Serbest
29
Geliştirici 29
Derecelendirme
(119)
Projeler
169
38%
Arabuluculuk
9
78% / 22%
Süresi dolmuş
15
9%
Serbest
30
Geliştirici 30
Derecelendirme
(2)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
1
50%
Serbest
31
Geliştirici 31
Derecelendirme
(264)
Projeler
311
75%
Arabuluculuk
16
69% / 0%
Süresi dolmuş
6
2%
Çalışıyor
32
Geliştirici 32
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 10 kod
33
Geliştirici 33
Derecelendirme
(4)
Projeler
8
0%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
4
50%
Serbest
34
Geliştirici 34
Derecelendirme
(319)
Projeler
574
35%
Arabuluculuk
83
31% / 45%
Süresi dolmuş
207
36%
Serbest
35
Geliştirici 35
Derecelendirme
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 11 kod
36
Geliştirici 36
Derecelendirme
(561)
Projeler
857
61%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
24
3%
Serbest
Yayınlandı: 1 kod
37
Geliştirici 37
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
38
Geliştirici 38
Derecelendirme
(29)
Projeler
36
39%
Arabuluculuk
0
Süresi dolmuş
2
6%
Serbest
39
Geliştirici 39
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
40
Geliştirici 40
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
41
Geliştirici 41
Derecelendirme
(1)
Projeler
4
50%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
2
50%
Serbest
Yayınlandı: 4 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
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
45
Geliştirici 45
Derecelendirme
(2)
Projeler
4
50%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 5 kod
46
Geliştirici 46
Derecelendirme
(32)
Projeler
42
43%
Arabuluculuk
2
100% / 0%
Süresi dolmuş
4
10%
Serbest
47
Geliştirici 47
Derecelendirme
(2)
Projeler
2
50%
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
(2)
Projeler
3
33%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
1
33%
Çalışıyor
Yayınlandı: 3 kod
51
Geliştirici 51
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
52
Geliştirici 52
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
53
Geliştirici 53
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
54
Geliştirici 54
Derecelendirme
(60)
Projeler
95
42%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
4%
Serbest
55
Geliştirici 55
Derecelendirme
(13)
Projeler
23
39%
Arabuluculuk
8
0% / 50%
Süresi dolmuş
4
17%
Serbest
56
Geliştirici 56
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
57
Geliştirici 57
Derecelendirme
(298)
Projeler
478
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
82
17%
Yüklendi
Yayınlandı: 2 kod
58
Geliştirici 58
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
59
Geliştirici 59
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
60
Geliştirici 60
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 7 kod
61
Geliştirici 61
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 3 kod
62
Geliştirici 62
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
63
Geliştirici 63
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
64
Geliştirici 64
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
65
Geliştirici 65
Derecelendirme
(170)
Projeler
265
62%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
10
4%
Çalışıyor
66
Geliştirici 66
Derecelendirme
(52)
Projeler
58
59%
Arabuluculuk
4
0% / 25%
Süresi dolmuş
1
2%
Serbest
67
Geliştirici 67
Derecelendirme
(6)
Projeler
7
71%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 1 makale, 2 kod
68
Geliştirici 68
Derecelendirme
(258)
Projeler
269
29%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
3
1%
Çalışıyor
Yayınlandı: 2 kod
69
Geliştirici 69
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
70
Geliştirici 70
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
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
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
73
Geliştirici 73
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
74
Geliştirici 74
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
75
Geliştirici 75
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
76
Geliştirici 76
Derecelendirme
(3)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 3 kod
Benzer siparişler
I’m looking for an experienced MQL4/MQL5 developer with proven expertise in genuine high-frequency trading (HFT) or ultra-fast scalping Expert Advisors. Project requirements: Develop MT4 and MT5 versions with complete source code and no restrictive licensing. Implement fast execution, selective entries, and rapid trade exits. Support XAUUSD, EURUSD, GBPUSD, and BTCUSD. Include robust risk controls: stop-loss
Hello everyone, I am looking for an experienced MQL4/MQL5 developer with proven expertise in developing high-performance scalping or high-frequency trading (HFT) Expert Advisors. Project requirements: Develop a fast, robust automated trading EA for MetaTrader 4 and MetaTrader 5. Focus on ultra-short-term scalping, selective entries, and rapid trade execution and exits. Support XAUUSD, EURUSD, GBPUSD, and BTCUSD
Hello everyone, I am looking for an experienced MQL4/MQL5 developer with proven expertise in developing high-performance scalping or high-frequency trading (HFT) Expert Advisors. Project requirements: Develop a fast, robust automated trading EA for MetaTrader 4 and MetaTrader 5. Focus on ultra-short-term scalping, selective entries, and rapid trade execution and exits. Support XAUUSD, EURUSD, GBPUSD, and BTCUSD
Hello lovies, I’m reaching out because I’m working on a specialized macroeconomic intelligence service focused on major economic releases and their potential impact on gold (XAUUSD), the US dollar, and the wider financial markets. My approach goes beyond simply following the economic calendar. I focus on understanding the information behind upcoming events, market expectations, and the potential implications for
Se tiene 2 Meta Trader 5, metar trader5 A ( master) meta trader 5 B ( slave) En el A se esta ejectunado algunas operaciones, dodne suele abrir multiples levels de ordenes, de sell y buy simultaneamente. Se necesita un EA, colocados tanto en el Master para enviar al SLave la copia de los trades , pero unicamente se va activar la copia, cuando en el Metatrader Master, "A" lleguie a un N levels de buy o M levels de
MT5 Expert Advisor Development Brief — Forex Project objective I am looking for an experienced MQL5 developer to build a bespoke, fully automated Expert Advisor for MetaTrader 5. The EA will be used on both proprietary trading firm (prop-firm) accounts and my own live trading account. My priorities, in order, are: 1. Low drawdown and robust risk management. 2. Consistent, repeatable profitability. 3. Reliable
Platform: MT5 only (no MT4 needed). Deliverable: an MT5 Expert Advisor with full source code (.mq5) that replicates the attached TradingView strategy (Pine Script v6, based on LuxAlgo's "ICT Killzones Toolkit" order blocks) as exactly as possible. Pasting the code into TradingView shows how it operates. I normally trade GBPUSD on the 5-minute chart Expected behavior: - Order block detection must match the Pine code
Saqib Khan 30 - 100 USD
Subject: Development of an Advanced AI-Powered Forex, Gold & Bitcoin Trading Bot for MT5 Hello, I am looking for an experienced developer to build a complete, professional, intelligent, and fully automated AI trading bot for MetaTrader 5 (MT5). The bot must support Gold (XAUUSD), Bitcoin (BTCUSD), and major Forex currency pairs , including Exness broker accounts, standard USD accounts, and cent accounts. I do not
Requirements Specification: Debug & Error Fixing: Review the entire source code of the MQL expert advisor. Identify and fix all logical errors, bugs, and performance issues that cause trades to close prematurely or yield extremely low profits. Strategy Restructuring & Optimization: Fully analyze and optimize the current entry and exit strategy for USDJPY and GBPUSD. Modify, upgrade, or completely rewrite the entry
Its my analyisis 30 - 100 USD
Title: MT5 Expert Advisor (Trading Bot) Development: SMA/EMA + Smart Money Concepts Strategy Description (सीधा कॉपी-पेस्ट करें): I am an experienced trader and need a developer to build a custom trading bot (Expert Advisor) for MetaTrader 5 (MT5). My trading background: Strong knowledge of SMA and EMA (trend and crossover strategies) Full understanding of Smart Money Concepts (order blocks, liquidity, market

Proje bilgisi

Bütçe
30+ USD

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0