Custom MT5 EA: Trailing Pending Stop Order with Position Reversal

MQL5 Experts

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(634)
Projets
742
34%
Arbitrage
49
53% / 39%
En retard
14
2%
Chargé
2
Développeur 2
Évaluation
(465)
Projets
815
49%
Arbitrage
76
21% / 50%
En retard
142
17%
Travail
3
Développeur 3
Évaluation
(438)
Projets
649
53%
Arbitrage
35
63% / 20%
En retard
7
1%
Travail
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(1)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 13 codes
6
Développeur 6
Évaluation
(3)
Projets
3
67%
Arbitrage
0
En retard
0
Travail
7
Développeur 7
Évaluation
(111)
Projets
184
25%
Arbitrage
25
16% / 76%
En retard
16
9%
Gratuit
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(101)
Projets
141
52%
Arbitrage
5
40% / 60%
En retard
0
Gratuit
10
Développeur 10
Évaluation
(22)
Projets
25
24%
Arbitrage
5
20% / 80%
En retard
1
4%
Gratuit
Publié : 9 codes
11
Développeur 11
Évaluation
(215)
Projets
280
21%
Arbitrage
27
56% / 15%
En retard
0
Chargé
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(33)
Projets
38
21%
Arbitrage
5
0% / 60%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(1)
Projets
2
50%
Arbitrage
0
En retard
1
50%
Travail
15
Développeur 15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Développeur 16
Évaluation
(8)
Projets
8
0%
Arbitrage
2
50% / 0%
En retard
1
13%
Travail
17
Développeur 17
Évaluation
(4)
Projets
10
60%
Arbitrage
0
En retard
0
Travail
18
Développeur 18
Évaluation
(19)
Projets
22
18%
Arbitrage
9
33% / 44%
En retard
3
14%
Travail
Publié : 1 code
19
Développeur 19
Évaluation
(214)
Projets
316
34%
Arbitrage
63
37% / 40%
En retard
102
32%
Travail
20
Développeur 20
Évaluation
(2)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
21
Développeur 21
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
22
Développeur 22
Évaluation
(6)
Projets
8
38%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
23
Développeur 23
Évaluation
(618)
Projets
1429
59%
Arbitrage
31
81% / 0%
En retard
10
1%
Gratuit
24
Développeur 24
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 3 codes
25
Développeur 25
Évaluation
(4)
Projets
7
57%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
26
Développeur 26
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
27
Développeur 27
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
28
Développeur 28
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
29
Développeur 29
Évaluation
(119)
Projets
169
38%
Arbitrage
9
78% / 22%
En retard
15
9%
Gratuit
30
Développeur 30
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
1
50%
Gratuit
31
Développeur 31
Évaluation
(264)
Projets
311
75%
Arbitrage
16
69% / 0%
En retard
6
2%
Travail
32
Développeur 32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 10 codes
33
Développeur 33
Évaluation
(4)
Projets
8
0%
Arbitrage
3
33% / 67%
En retard
4
50%
Gratuit
34
Développeur 34
Évaluation
(319)
Projets
574
35%
Arbitrage
83
31% / 45%
En retard
207
36%
Gratuit
35
Développeur 35
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 11 codes
36
Développeur 36
Évaluation
(560)
Projets
855
61%
Arbitrage
33
27% / 45%
En retard
24
3%
Travail
Publié : 1 code
37
Développeur 37
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
38
Développeur 38
Évaluation
(29)
Projets
36
39%
Arbitrage
0
En retard
2
6%
Gratuit
39
Développeur 39
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
40
Développeur 40
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
41
Développeur 41
Évaluation
(1)
Projets
4
50%
Arbitrage
3
0% / 100%
En retard
2
50%
Gratuit
Publié : 4 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
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
45
Développeur 45
Évaluation
(1)
Projets
3
67%
Arbitrage
0
En retard
0
Travail
Publié : 5 codes
46
Développeur 46
Évaluation
(32)
Projets
42
43%
Arbitrage
2
100% / 0%
En retard
4
10%
Gratuit
47
Développeur 47
Évaluation
(2)
Projets
2
50%
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
(2)
Projets
3
33%
Arbitrage
1
0% / 0%
En retard
1
33%
Travail
Publié : 3 codes
51
Développeur 51
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
52
Développeur 52
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
53
Développeur 53
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
54
Développeur 54
Évaluation
(60)
Projets
95
42%
Arbitrage
4
0% / 100%
En retard
4
4%
Gratuit
55
Développeur 55
Évaluation
(13)
Projets
23
39%
Arbitrage
8
0% / 50%
En retard
4
17%
Gratuit
56
Développeur 56
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
57
Développeur 57
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
58
Développeur 58
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
59
Développeur 59
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
60
Développeur 60
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
Publié : 7 codes
61
Développeur 61
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 3 codes
62
Développeur 62
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
63
Développeur 63
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
64
Développeur 64
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
65
Développeur 65
Évaluation
(170)
Projets
265
62%
Arbitrage
4
50% / 25%
En retard
10
4%
Travail
66
Développeur 66
Évaluation
(52)
Projets
58
59%
Arbitrage
4
0% / 25%
En retard
1
2%
Gratuit
67
Développeur 67
Évaluation
(6)
Projets
7
71%
Arbitrage
0
En retard
0
Travail
Publié : 1 article, 2 codes
68
Développeur 68
Évaluation
(258)
Projets
269
29%
Arbitrage
2
50% / 0%
En retard
3
1%
Travail
Publié : 2 codes
69
Développeur 69
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
I am looking for an experienced MQL5 developer and trader to develop a non-repainting scalping indicator for MT5 , designed for the M5 and M15 timeframes. Instruments I Trade: GainX 400 GainX 600 PainX 400 PainX 600 My Main Requirement: Signal Accuracy I do not need another basic indicator that simply displays BUY/SELL signals with Stop Loss and Take Profit levels. I already have several indicators, but their signals
Project Description: I need an MQL5 Expert Advisor built based on a precise Smart Money Concepts (SMC) multi-timeframe strategy. The bot must analyze the 1-Hour chart for institutional bias and execute trades on the 3-Minute chart following strict structural rules. 1. Inputs & Parameters (Customizable) - Risk Model: Fixed dollar risk of $20.00 for every $100.00 of account balance (20% per trade for personal capital
Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
Title: Professional MT5 Expert Advisor Required - Fully Automated Trend Pullback Strategy Description: I am looking for an experienced MQL5 developer to create a fully automated MT5 Expert Advisor based on a trend-following pullback strategy. The EA must be flexible, fully configurable and optimized for use on different symbols and timeframes. ============================== STRATEGY OVERVIEW
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
FOR MT5. BROKERS - XM,TICKMILL. looking for an EA which can generate reasonable profits like 100% monthly, SEND ME SOUCE CODE AND UPON TESTING I SHALL PAY AND WE CAN MAKE NECESSARY MODIFICATIONS
I need a robot that will grow small accounts to bigger amounts, I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $200 profit for the day, it must close
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must

Informations sur le projet

Budget
30+ USD

Client

Commandes passées1
Nombre d'arbitrages0