Termos de Referência

1. Use two EMAs: 20 and 50.

  •   If EMA 20 is above EMA 50 → uptrend (look for buys)
  •   If EMA 20 is below EMA 50 → downtrend (look for sells)

2. Wait for a pullback into the area between the two EMAs.

- For buys: price must touch or move between EMA 20 and EMA 50

during the last few candles.

- For stils: same idea, but in a downtrend.

3. Entry signal:

  •   Buy: a bullish engulfing candle in an uptrend after the pullback
  •   Sell: a bearish engulfing candle in a downtrend after the pullback
  •   Enter at the close of the engulfing candle.

4. Stop Loss:

  •   Option A: use recent swing high/low
  •   Option B: use ATR-based stop loss
  •   Make this an input (0 = swing SL, 1 = ATR SL)

5. Take Profit:

- Based on risk-reward ratio (for example 1:2)

6. Risk settings:

  •   Option for fixed lot size
  •   Option for risk percentage (auto-calculated lot size)
  1.   Only open trades during specific trading hours (input: start hour and end hour)
  2.   Only allow one open trade at a time per symbol.

**INPUTS TO INCLUDE**

  •   FastEMA (default 20)
  •   SlowEMA (default 50)
  •   PullbackBars (default 5)
  •   SL_Mode (0 = swing, 1 = ATR)
  •   ATR_Period (14)
  •   ATR_Multiplier (1.5)
  •   RiskReward (2.0)
  •   UseFixedLot (true/false)
  •   FixedLotSize (0.10)
  •   RiskPercent (1%)
  •   MagicNumber
  •   TradeStartHour / TradeEndHour
  •   DebugMode (true/false)

1. First, briefly restate the logic in simple terms.

Then provide the full MQL5 EA code.

  1.   Code must compile in MetaTrader 5 with no errors.
  2.   Comment the code clearly so beginners can understand it.

Respondido

1
Desenvolvedor 1
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Trabalhando
2
Desenvolvedor 2
Classificação
(276)
Projetos
348
29%
Arbitragem
37
27% / 65%
Expirado
10
3%
Trabalhando
3
Desenvolvedor 3
Classificação
(396)
Projetos
511
23%
Arbitragem
60
57% / 25%
Expirado
60
12%
Carregado
4
Desenvolvedor 4
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
5
Desenvolvedor 5
Classificação
(4)
Projetos
4
25%
Arbitragem
1
0% / 100%
Expirado
0
Livre
Publicou: 2 artigos
6
Desenvolvedor 6
Classificação
(7)
Projetos
6
0%
Arbitragem
4
25% / 75%
Expirado
2
33%
Livre
7
Desenvolvedor 7
Classificação
(6)
Projetos
8
38%
Arbitragem
0
Expirado
1
13%
Carregado
Publicou: 1 código
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(1)
Projetos
1
100%
Arbitragem
0
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(2)
Projetos
2
0%
Arbitragem
1
0% / 0%
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(55)
Projetos
92
24%
Arbitragem
8
75% / 13%
Expirado
44
48%
Livre
14
Desenvolvedor 14
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(20)
Projetos
26
38%
Arbitragem
6
33% / 50%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(15)
Projetos
29
38%
Arbitragem
3
33% / 67%
Expirado
6
21%
Trabalhando
17
Desenvolvedor 17
Classificação
(11)
Projetos
13
62%
Arbitragem
0
Expirado
0
Livre
18
Desenvolvedor 18
Classificação
(15)
Projetos
20
25%
Arbitragem
2
50% / 0%
Expirado
4
20%
Trabalhando
19
Desenvolvedor 19
Classificação
(182)
Projetos
290
64%
Arbitragem
3
100% / 0%
Expirado
65
22%
Trabalhando
20
Desenvolvedor 20
Classificação
(10)
Projetos
14
43%
Arbitragem
0
Expirado
3
21%
Livre
21
Desenvolvedor 21
Classificação
(3)
Projetos
2
0%
Arbitragem
1
0% / 0%
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(366)
Projetos
449
55%
Arbitragem
23
57% / 17%
Expirado
30
7%
Trabalhando
23
Desenvolvedor 23
Classificação
(3)
Projetos
9
67%
Arbitragem
0
Expirado
0
Trabalhando
24
Desenvolvedor 24
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
25
Desenvolvedor 25
Classificação
(106)
Projetos
129
25%
Arbitragem
25
28% / 56%
Expirado
8
6%
Livre
26
Desenvolvedor 26
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
27
Desenvolvedor 27
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
28
Desenvolvedor 28
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
29
Desenvolvedor 29
Classificação
(61)
Projetos
83
45%
Arbitragem
27
11% / 70%
Expirado
8
10%
Livre
30
Desenvolvedor 30
Classificação
(5)
Projetos
7
29%
Arbitragem
0
Expirado
1
14%
Ocupado
31
Desenvolvedor 31
Classificação
(209)
Projetos
271
21%
Arbitragem
24
50% / 17%
Expirado
0
Trabalhando
32
Desenvolvedor 32
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
33
Desenvolvedor 33
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
34
Desenvolvedor 34
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
35
Desenvolvedor 35
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
36
Desenvolvedor 36
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
37
Desenvolvedor 37
Classificação
(83)
Projetos
95
32%
Arbitragem
9
22% / 56%
Expirado
5
5%
Trabalhando
38
Desenvolvedor 38
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
39
Desenvolvedor 39
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
40
Desenvolvedor 40
Classificação
(2344)
Projetos
2949
63%
Arbitragem
125
44% / 26%
Expirado
429
15%
Livre
41
Desenvolvedor 41
Classificação
(28)
Projetos
34
35%
Arbitragem
0
Expirado
2
6%
Livre
42
Desenvolvedor 42
Classificação
(70)
Projetos
87
57%
Arbitragem
6
67% / 17%
Expirado
2
2%
Carregado
43
Desenvolvedor 43
Classificação
(14)
Projetos
17
18%
Arbitragem
2
0% / 100%
Expirado
3
18%
Livre
44
Desenvolvedor 44
Classificação
(551)
Projetos
839
61%
Arbitragem
33
27% / 45%
Expirado
24
3%
Livre
Publicou: 1 código
45
Desenvolvedor 45
Classificação
(298)
Projetos
478
40%
Arbitragem
105
40% / 24%
Expirado
82
17%
Carregado
Publicou: 2 códigos
46
Desenvolvedor 46
Classificação
(3)
Projetos
4
0%
Arbitragem
1
100% / 0%
Expirado
1
25%
Livre
47
Desenvolvedor 47
Classificação
(14)
Projetos
22
45%
Arbitragem
6
33% / 17%
Expirado
2
9%
Trabalhando
Publicou: 7 artigos, 35 códigos
48
Desenvolvedor 48
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
49
Desenvolvedor 49
Classificação
(258)
Projetos
269
29%
Arbitragem
1
100% / 0%
Expirado
3
1%
Trabalhando
Publicou: 2 códigos
50
Desenvolvedor 50
Classificação
(271)
Projetos
553
50%
Arbitragem
57
40% / 37%
Expirado
227
41%
Trabalhando
51
Desenvolvedor 51
Classificação
(645)
Projetos
873
48%
Arbitragem
29
38% / 17%
Expirado
63
7%
Livre
52
Desenvolvedor 52
Classificação
(32)
Projetos
33
42%
Arbitragem
0
Expirado
3
9%
Livre
53
Desenvolvedor 53
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
54
Desenvolvedor 54
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
55
Desenvolvedor 55
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
1
100%
Livre
56
Desenvolvedor 56
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
57
Desenvolvedor 57
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Trabalhando
58
Desenvolvedor 58
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
59
Desenvolvedor 59
Classificação
(2675)
Projetos
3414
68%
Arbitragem
77
48% / 14%
Expirado
342
10%
Livre
Publicou: 1 código
60
Desenvolvedor 60
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
61
Desenvolvedor 61
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
62
Desenvolvedor 62
Classificação
(134)
Projetos
174
40%
Arbitragem
10
40% / 10%
Expirado
30
17%
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
(45)
Projetos
53
57%
Arbitragem
2
100% / 0%
Expirado
1
2%
Livre
Publicou: 5 códigos
66
Desenvolvedor 66
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
67
Desenvolvedor 67
Classificação
(10)
Projetos
13
0%
Arbitragem
24
0% / 75%
Expirado
4
31%
Trabalhando
68
Desenvolvedor 68
Classificação
(513)
Projetos
552
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Trabalhando
69
Desenvolvedor 69
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
70
Desenvolvedor 70
Classificação
(4)
Projetos
5
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
75
Desenvolvedor 75
Classificação
(74)
Projetos
73
47%
Arbitragem
2
50% / 50%
Expirado
2
3%
Livre
76
Desenvolvedor 76
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 2 códigos
77
Desenvolvedor 77
Classificação
(121)
Projetos
134
66%
Arbitragem
36
25% / 56%
Expirado
22
16%
Livre
Publicou: 10 códigos
78
Desenvolvedor 78
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
79
Desenvolvedor 79
Classificação
(260)
Projetos
305
76%
Arbitragem
13
77% / 0%
Expirado
5
2%
Trabalhando
80
Desenvolvedor 80
Classificação
(5)
Projetos
5
0%
Arbitragem
5
0% / 40%
Expirado
0
Livre
81
Desenvolvedor 81
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
82
Desenvolvedor 82
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
83
Desenvolvedor 83
Classificação
(12)
Projetos
13
8%
Arbitragem
1
0% / 100%
Expirado
0
Livre
84
Desenvolvedor 84
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
85
Desenvolvedor 85
Classificação
(30)
Projetos
45
16%
Arbitragem
2
0% / 100%
Expirado
4
9%
Livre
86
Desenvolvedor 86
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
We are seeking an experienced algorithmic trading developer to design, build, test and optimize automated trading bots focused primarily on gold futures and related gold instruments. The trading infrastructure will operate on a dedicated high-performance server hosted in the United States, with particular emphasis on low-latency execution, reliability and 24/5 operation. The primary trading and execution platform
Ai sadick 30+ USD
Fully automated entry and exit of trades. Identify market trends using price action and reliable technical indicators. Trade major Forex pairs and XAU/USD (Gold). Automatic Stop Loss and Take Profit on every trade. Adjustable risk management, with default risk of 1% per trade. Maximum daily loss protection to stop trading after a specified loss. Break-even and trailing-stop functions. Adjustable lot size, risk %
I need a new MT5 Expert Advisor based on a fully customizable two-sided pending-order grid. The purpose is to build a flexible EA engine . I will choose the trading parameters and strategy settings myself later. Please do not hard-code any specific lot sizes, grid distances, or trading progression. 1. Grid Logic When the EA starts a new basket, it should use the current market price as the starting/reference price
profitable EAs wanted with at least 3 to 5 years backtest. you be submit your proofs such as graphic results, backtesting results, and your demo or weekly the eas has traded
Date:29.08.2026 **TECHNICAL SPECIFICATIONS** PDF Attached for reference rest all details given below. Required: Creation, Integration and successful execution of trading algo/robot in MT5 using MT5 VPS. Brokers: Trades to be executed in both brokers Swissquote and Pepperstone. Symbols: All available in MT5. ** Common parameters for all executions: · Manual Start/Stop. · Session time (defined / always
ZONDII Scalpers 30+ USD
I need an Expert Advisor called ZONDII Scalpers for MT5 (MQL5). Timeframe: M5 Pairs: XAUUSD / EURUSD BUY when: Price > EMA200 and EMA50 crosses above EMA200 and RSI(14) > 50 SELL when: Price < EMA200 and EMA50 crosses below EMA200 and RSI(14) < 50 Risk: Fixed lot 0.01, SL 300 points, TP 600 points, Trailing start 200 points / step 100 points. Filter: Max spread 30 points. Only 1 trade at a time. Inputs must be
Please do not offer to code this order unless you are able to use clean code and delivery the EA on time, All settings are to be changeable in the “input” window on the EA and I would also like to enable/disable them (True/False) individually, trades are only to be entered once all the enabled conditions are met at the close of the current candle. Trading days & times: I would like to select the days and times of
I am looking for a professional MT5 EA developer to build a high-performance trading bot specifically for XAUUSD (Gold). My target is approximately 200% return within 3 months, while keeping the drawdown and risk as controlled as reasonably possible. Requirements: MT5 Expert Advisor (EA) XAUUSD only Fully automated trading Clear risk management Stop Loss and Take Profit on trades No martingale or grid strategy unless
Hello, I’m looking for an experienced MT5 developer to build a professional Expert Advisor (EA) for trading Gold (XAUUSD). My requirements: Platform: MT5 Instrument: XAUUSD (Gold) Fully automatic trading Both BUY and SELL trades Adjustable lot size Stop Loss and Take Profit Trailing Stop / Break Even Daily maximum loss limit Maximum drawdown protection Maximum number of open trades Trading hours/session filter Spread
B6 EA 30 - 50 USD
Develop an Expert Advisor trading trend reversals. Reversal signals will be generated based on Price Action patterns. Trend will be determined based on ADX, Alligator and MACD, while the indicator selection should be available in the EA's input parameters

Informações sobre o projeto

Orçamento
30 - 20000 USD
Prazo
de 1 para 30 dias