Custom MT5 EA: Trailing Pending Stop Order with Position Reversal

MQL5 Experts

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(634)
Projetos
743
34%
Arbitragem
49
53% / 39%
Expirado
14
2%
Trabalhando
2
Desenvolvedor 2
Classificação
(465)
Projetos
815
49%
Arbitragem
76
21% / 50%
Expirado
142
17%
Trabalhando
3
Desenvolvedor 3
Classificação
(438)
Projetos
649
53%
Arbitragem
35
63% / 20%
Expirado
7
1%
Trabalhando
4
Desenvolvedor 4
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(1)
Projetos
2
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 15 códigos
6
Desenvolvedor 6
Classificação
(3)
Projetos
3
67%
Arbitragem
0
Expirado
0
Trabalhando
7
Desenvolvedor 7
Classificação
(111)
Projetos
184
25%
Arbitragem
25
16% / 76%
Expirado
16
9%
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(101)
Projetos
141
52%
Arbitragem
5
40% / 60%
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
(22)
Projetos
25
24%
Arbitragem
5
20% / 80%
Expirado
1
4%
Livre
Publicou: 10 códigos
11
Desenvolvedor 11
Classificação
(215)
Projetos
280
21%
Arbitragem
27
56% / 15%
Expirado
0
Carregado
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(33)
Projetos
38
21%
Arbitragem
5
0% / 60%
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(1)
Projetos
2
50%
Arbitragem
0
Expirado
1
50%
Trabalhando
15
Desenvolvedor 15
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(8)
Projetos
8
0%
Arbitragem
2
50% / 0%
Expirado
1
13%
Trabalhando
17
Desenvolvedor 17
Classificação
(4)
Projetos
10
60%
Arbitragem
0
Expirado
0
Trabalhando
18
Desenvolvedor 18
Classificação
(19)
Projetos
22
18%
Arbitragem
9
33% / 44%
Expirado
3
14%
Trabalhando
Publicou: 1 código
19
Desenvolvedor 19
Classificação
(214)
Projetos
316
34%
Arbitragem
63
37% / 40%
Expirado
102
32%
Trabalhando
20
Desenvolvedor 20
Classificação
(2)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(6)
Projetos
8
38%
Arbitragem
1
0% / 100%
Expirado
0
Livre
23
Desenvolvedor 23
Classificação
(618)
Projetos
1429
59%
Arbitragem
31
81% / 0%
Expirado
10
1%
Trabalhando
24
Desenvolvedor 24
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 3 códigos
25
Desenvolvedor 25
Classificação
(4)
Projetos
7
57%
Arbitragem
1
100% / 0%
Expirado
0
Livre
26
Desenvolvedor 26
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
27
Desenvolvedor 27
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
28
Desenvolvedor 28
Classificação
(7)
Projetos
6
0%
Arbitragem
4
25% / 75%
Expirado
2
33%
Livre
29
Desenvolvedor 29
Classificação
(119)
Projetos
169
38%
Arbitragem
9
78% / 22%
Expirado
15
9%
Livre
30
Desenvolvedor 30
Classificação
(2)
Projetos
2
50%
Arbitragem
0
Expirado
1
50%
Livre
31
Desenvolvedor 31
Classificação
(264)
Projetos
311
75%
Arbitragem
16
69% / 0%
Expirado
6
2%
Trabalhando
32
Desenvolvedor 32
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 10 códigos
33
Desenvolvedor 33
Classificação
(4)
Projetos
8
0%
Arbitragem
3
33% / 67%
Expirado
4
50%
Livre
34
Desenvolvedor 34
Classificação
(319)
Projetos
574
35%
Arbitragem
83
31% / 45%
Expirado
207
36%
Livre
35
Desenvolvedor 35
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 11 códigos
36
Desenvolvedor 36
Classificação
(561)
Projetos
857
61%
Arbitragem
33
27% / 45%
Expirado
24
3%
Livre
Publicou: 1 código
37
Desenvolvedor 37
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
38
Desenvolvedor 38
Classificação
(29)
Projetos
36
39%
Arbitragem
0
Expirado
2
6%
Livre
39
Desenvolvedor 39
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
40
Desenvolvedor 40
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 1 código
41
Desenvolvedor 41
Classificação
(1)
Projetos
4
50%
Arbitragem
3
0% / 100%
Expirado
2
50%
Livre
Publicou: 4 códigos
42
Desenvolvedor 42
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
43
Desenvolvedor 43
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
44
Desenvolvedor 44
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
45
Desenvolvedor 45
Classificação
(1)
Projetos
3
67%
Arbitragem
0
Expirado
0
Trabalhando
Publicou: 5 códigos
46
Desenvolvedor 46
Classificação
(32)
Projetos
42
43%
Arbitragem
2
100% / 0%
Expirado
4
10%
Livre
47
Desenvolvedor 47
Classificação
(2)
Projetos
2
50%
Arbitragem
0
Expirado
0
Livre
48
Desenvolvedor 48
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
49
Desenvolvedor 49
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
50
Desenvolvedor 50
Classificação
(2)
Projetos
3
33%
Arbitragem
1
0% / 0%
Expirado
1
33%
Trabalhando
Publicou: 3 códigos
51
Desenvolvedor 51
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
52
Desenvolvedor 52
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 1 código
53
Desenvolvedor 53
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
54
Desenvolvedor 54
Classificação
(60)
Projetos
95
42%
Arbitragem
4
0% / 100%
Expirado
4
4%
Livre
55
Desenvolvedor 55
Classificação
(13)
Projetos
23
39%
Arbitragem
8
0% / 50%
Expirado
4
17%
Livre
56
Desenvolvedor 56
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
57
Desenvolvedor 57
Classificação
(298)
Projetos
478
40%
Arbitragem
105
40% / 24%
Expirado
82
17%
Carregado
Publicou: 2 códigos
58
Desenvolvedor 58
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
59
Desenvolvedor 59
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
60
Desenvolvedor 60
Classificação
(1)
Projetos
1
100%
Arbitragem
0
Expirado
0
Livre
Publicou: 7 códigos
61
Desenvolvedor 61
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 3 códigos
62
Desenvolvedor 62
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
63
Desenvolvedor 63
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
64
Desenvolvedor 64
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
65
Desenvolvedor 65
Classificação
(170)
Projetos
265
62%
Arbitragem
4
50% / 25%
Expirado
10
4%
Trabalhando
66
Desenvolvedor 66
Classificação
(52)
Projetos
58
59%
Arbitragem
4
0% / 25%
Expirado
1
2%
Livre
67
Desenvolvedor 67
Classificação
(6)
Projetos
7
71%
Arbitragem
0
Expirado
0
Trabalhando
Publicou: 1 artigo, 2 códigos
68
Desenvolvedor 68
Classificação
(258)
Projetos
269
29%
Arbitragem
2
50% / 0%
Expirado
3
1%
Trabalhando
Publicou: 2 códigos
69
Desenvolvedor 69
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
70
Desenvolvedor 70
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
71
Desenvolvedor 71
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
72
Desenvolvedor 72
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
73
Desenvolvedor 73
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
74
Desenvolvedor 74
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
30+ USD

Cliente

Pedidos postados1
Número de arbitragens0