Custom MT5 EA: Trailing Pending Stop Order with Position Reversal

MQL5 Asesores Expertos

Tarea técnica

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

Han respondido

1
Desarrollador 1
Evaluación
(634)
Proyectos
743
34%
Arbitraje
49
53% / 39%
Caducado
14
2%
Trabaja
2
Desarrollador 2
Evaluación
(465)
Proyectos
815
49%
Arbitraje
76
21% / 50%
Caducado
142
17%
Trabaja
3
Desarrollador 3
Evaluación
(438)
Proyectos
649
53%
Arbitraje
35
63% / 20%
Caducado
7
1%
Trabaja
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(1)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 15 ejemplos
6
Desarrollador 6
Evaluación
(3)
Proyectos
3
67%
Arbitraje
0
Caducado
0
Trabaja
7
Desarrollador 7
Evaluación
(111)
Proyectos
184
25%
Arbitraje
25
16% / 76%
Caducado
16
9%
Libre
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(101)
Proyectos
141
52%
Arbitraje
5
40% / 60%
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(22)
Proyectos
25
24%
Arbitraje
5
20% / 80%
Caducado
1
4%
Libre
Ha publicado: 10 ejemplos
11
Desarrollador 11
Evaluación
(215)
Proyectos
280
21%
Arbitraje
27
56% / 15%
Caducado
0
Trabajando
12
Desarrollador 12
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(33)
Proyectos
38
21%
Arbitraje
5
0% / 60%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(1)
Proyectos
2
50%
Arbitraje
0
Caducado
1
50%
Trabaja
15
Desarrollador 15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(8)
Proyectos
8
0%
Arbitraje
2
50% / 0%
Caducado
1
13%
Trabaja
17
Desarrollador 17
Evaluación
(4)
Proyectos
10
60%
Arbitraje
0
Caducado
0
Trabaja
18
Desarrollador 18
Evaluación
(19)
Proyectos
22
18%
Arbitraje
9
33% / 44%
Caducado
3
14%
Trabaja
Ha publicado: 1 ejemplo
19
Desarrollador 19
Evaluación
(214)
Proyectos
316
34%
Arbitraje
63
37% / 40%
Caducado
102
32%
Trabaja
20
Desarrollador 20
Evaluación
(2)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(6)
Proyectos
8
38%
Arbitraje
1
0% / 100%
Caducado
0
Libre
23
Desarrollador 23
Evaluación
(618)
Proyectos
1429
59%
Arbitraje
31
81% / 0%
Caducado
10
1%
Trabaja
24
Desarrollador 24
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 3 ejemplos
25
Desarrollador 25
Evaluación
(4)
Proyectos
7
57%
Arbitraje
1
100% / 0%
Caducado
0
Libre
26
Desarrollador 26
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
27
Desarrollador 27
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
28
Desarrollador 28
Evaluación
(7)
Proyectos
6
0%
Arbitraje
4
25% / 75%
Caducado
2
33%
Libre
29
Desarrollador 29
Evaluación
(119)
Proyectos
169
38%
Arbitraje
9
78% / 22%
Caducado
15
9%
Libre
30
Desarrollador 30
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
1
50%
Libre
31
Desarrollador 31
Evaluación
(264)
Proyectos
311
75%
Arbitraje
16
69% / 0%
Caducado
6
2%
Trabaja
32
Desarrollador 32
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 10 ejemplos
33
Desarrollador 33
Evaluación
(4)
Proyectos
8
0%
Arbitraje
3
33% / 67%
Caducado
4
50%
Libre
34
Desarrollador 34
Evaluación
(319)
Proyectos
574
35%
Arbitraje
83
31% / 45%
Caducado
207
36%
Libre
35
Desarrollador 35
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 11 ejemplos
36
Desarrollador 36
Evaluación
(561)
Proyectos
857
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
37
Desarrollador 37
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
38
Desarrollador 38
Evaluación
(29)
Proyectos
36
39%
Arbitraje
0
Caducado
2
6%
Libre
39
Desarrollador 39
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
40
Desarrollador 40
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
41
Desarrollador 41
Evaluación
(1)
Proyectos
4
50%
Arbitraje
3
0% / 100%
Caducado
2
50%
Libre
Ha publicado: 4 ejemplos
42
Desarrollador 42
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
43
Desarrollador 43
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
44
Desarrollador 44
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
45
Desarrollador 45
Evaluación
(1)
Proyectos
3
67%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 5 ejemplos
46
Desarrollador 46
Evaluación
(32)
Proyectos
42
43%
Arbitraje
2
100% / 0%
Caducado
4
10%
Libre
47
Desarrollador 47
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
48
Desarrollador 48
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
49
Desarrollador 49
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
50
Desarrollador 50
Evaluación
(2)
Proyectos
3
33%
Arbitraje
1
0% / 0%
Caducado
1
33%
Trabaja
Ha publicado: 3 ejemplos
51
Desarrollador 51
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
52
Desarrollador 52
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
53
Desarrollador 53
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
54
Desarrollador 54
Evaluación
(60)
Proyectos
95
42%
Arbitraje
4
0% / 100%
Caducado
4
4%
Libre
55
Desarrollador 55
Evaluación
(13)
Proyectos
23
39%
Arbitraje
8
0% / 50%
Caducado
4
17%
Libre
56
Desarrollador 56
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
57
Desarrollador 57
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
58
Desarrollador 58
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
59
Desarrollador 59
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
60
Desarrollador 60
Evaluación
(1)
Proyectos
1
100%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 7 ejemplos
61
Desarrollador 61
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 3 ejemplos
62
Desarrollador 62
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
63
Desarrollador 63
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
64
Desarrollador 64
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
65
Desarrollador 65
Evaluación
(170)
Proyectos
265
62%
Arbitraje
4
50% / 25%
Caducado
10
4%
Trabaja
66
Desarrollador 66
Evaluación
(52)
Proyectos
58
59%
Arbitraje
4
0% / 25%
Caducado
1
2%
Libre
67
Desarrollador 67
Evaluación
(6)
Proyectos
7
71%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 1 artículo, 2 ejemplos
68
Desarrollador 68
Evaluación
(258)
Proyectos
269
29%
Arbitraje
2
50% / 0%
Caducado
3
1%
Trabaja
Ha publicado: 2 ejemplos
69
Desarrollador 69
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
70
Desarrollador 70
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
71
Desarrollador 71
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
72
Desarrollador 72
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
73
Desarrollador 73
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
74
Desarrollador 74
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
i have back test video of exe5 file and need to develop ea mql mt5 source file experienced developers needed...i send video who are interested.... this is not martingale method
I’m looking for an experienced developer to build a fully automated XAUUSD scalping EA for MT5. Requirements: * Fast entries targeting small, profitable moves after trading costs. * Configurable fixed-target and trailing-stop modes. A $1 gold price move can trigger profit protection instead of closing the trade. * Once the profit trigger is reached, move the stop to cover costs and lock in a small net profit, then
I want to create an EA that will take trades according to a trading zone condition. The logic will start with the identification of a trading zone for BUY and SELL in the EA. After the trading zone has been identified, then the EA will use the current time frame prices to determine if the market will be a BUY or SELL. The market will be a BUY if the low price range goes above the lowest price after the installation
I have an existing compiled MT5 Expert Advisor (.ex5) for XAUUSD scalping. I need a developer to build a bridge that connects my existing EA to a broker’s FIX API, allowing its trading signals to execute orders directly through FIX instead of the standard MT5 trade server. I do not need a new trading strategy or a new EA. Please confirm whether this is technically possible without the EA source code, and explain your
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

Información sobre el proyecto

Presupuesto
30+ USD

Cliente

Encargos realizados1
Número de arbitrajes0