Specification

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.

Responded

1
Developer 1
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Working
2
Developer 2
Rating
(276)
Projects
348
29%
Arbitration
37
27% / 65%
Overdue
10
3%
Working
3
Developer 3
Rating
(396)
Projects
511
23%
Arbitration
60
57% / 25%
Overdue
60
12%
Loaded
4
Developer 4
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
5
Developer 5
Rating
(4)
Projects
4
25%
Arbitration
1
0% / 100%
Overdue
0
Free
Published: 2 articles
6
Developer 6
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
7
Developer 7
Rating
(6)
Projects
8
38%
Arbitration
0
Overdue
1
13%
Loaded
Published: 1 code
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(2)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(55)
Projects
92
24%
Arbitration
8
75% / 13%
Overdue
44
48%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
16
Developer 16
Rating
(15)
Projects
29
38%
Arbitration
3
33% / 67%
Overdue
6
21%
Working
17
Developer 17
Rating
(11)
Projects
13
62%
Arbitration
0
Overdue
0
Free
18
Developer 18
Rating
(15)
Projects
20
25%
Arbitration
2
50% / 0%
Overdue
4
20%
Working
19
Developer 19
Rating
(182)
Projects
290
64%
Arbitration
3
100% / 0%
Overdue
65
22%
Working
20
Developer 20
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
21
Developer 21
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
22
Developer 22
Rating
(366)
Projects
449
55%
Arbitration
23
57% / 17%
Overdue
30
7%
Working
23
Developer 23
Rating
(3)
Projects
9
67%
Arbitration
0
Overdue
0
Working
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
(106)
Projects
129
25%
Arbitration
25
28% / 56%
Overdue
8
6%
Free
26
Developer 26
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
27
Developer 27
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
28
Developer 28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
(61)
Projects
83
45%
Arbitration
27
11% / 70%
Overdue
8
10%
Free
30
Developer 30
Rating
(5)
Projects
7
29%
Arbitration
0
Overdue
1
14%
Loaded
31
Developer 31
Rating
(209)
Projects
271
21%
Arbitration
24
50% / 17%
Overdue
0
Working
32
Developer 32
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
35
Developer 35
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
37
Developer 37
Rating
(83)
Projects
95
32%
Arbitration
9
22% / 56%
Overdue
5
5%
Working
38
Developer 38
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
39
Developer 39
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
40
Developer 40
Rating
(2344)
Projects
2949
63%
Arbitration
125
44% / 26%
Overdue
429
15%
Free
41
Developer 41
Rating
(28)
Projects
34
35%
Arbitration
0
Overdue
2
6%
Free
42
Developer 42
Rating
(70)
Projects
87
57%
Arbitration
6
67% / 17%
Overdue
2
2%
Loaded
43
Developer 43
Rating
(14)
Projects
17
18%
Arbitration
2
0% / 100%
Overdue
3
18%
Free
44
Developer 44
Rating
(551)
Projects
839
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Free
Published: 1 code
45
Developer 45
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
46
Developer 46
Rating
(3)
Projects
4
0%
Arbitration
1
100% / 0%
Overdue
1
25%
Free
47
Developer 47
Rating
(14)
Projects
22
45%
Arbitration
6
33% / 17%
Overdue
2
9%
Working
Published: 7 articles, 35 codes
48
Developer 48
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
49
Developer 49
Rating
(258)
Projects
269
29%
Arbitration
1
100% / 0%
Overdue
3
1%
Working
Published: 2 codes
50
Developer 50
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
51
Developer 51
Rating
(645)
Projects
873
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Free
52
Developer 52
Rating
(32)
Projects
33
42%
Arbitration
0
Overdue
3
9%
Free
53
Developer 53
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
54
Developer 54
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
55
Developer 55
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
1
100%
Free
56
Developer 56
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
57
Developer 57
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
58
Developer 58
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
59
Developer 59
Rating
(2675)
Projects
3414
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
60
Developer 60
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
61
Developer 61
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
62
Developer 62
Rating
(134)
Projects
174
40%
Arbitration
10
40% / 10%
Overdue
30
17%
Free
63
Developer 63
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
64
Developer 64
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
65
Developer 65
Rating
(45)
Projects
53
57%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
66
Developer 66
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
67
Developer 67
Rating
(10)
Projects
13
0%
Arbitration
24
0% / 75%
Overdue
4
31%
Working
68
Developer 68
Rating
(513)
Projects
552
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Working
69
Developer 69
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
70
Developer 70
Rating
(4)
Projects
5
0%
Arbitration
0
Overdue
0
Free
71
Developer 71
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
72
Developer 72
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
73
Developer 73
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
74
Developer 74
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
75
Developer 75
Rating
(74)
Projects
73
47%
Arbitration
2
50% / 50%
Overdue
2
3%
Free
76
Developer 76
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
77
Developer 77
Rating
(121)
Projects
134
66%
Arbitration
36
25% / 56%
Overdue
22
16%
Free
Published: 10 codes
78
Developer 78
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
79
Developer 79
Rating
(260)
Projects
305
76%
Arbitration
13
77% / 0%
Overdue
5
2%
Working
80
Developer 80
Rating
(5)
Projects
5
0%
Arbitration
5
0% / 40%
Overdue
0
Free
81
Developer 81
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
82
Developer 82
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
83
Developer 83
Rating
(12)
Projects
13
8%
Arbitration
1
0% / 100%
Overdue
0
Free
84
Developer 84
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
85
Developer 85
Rating
(30)
Projects
45
16%
Arbitration
2
0% / 100%
Overdue
4
9%
Free
86
Developer 86
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
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
Hello there, I am looking for a automated strategy for ninjatrader 5 Looking for a proven profit factor of 1.5 ( minimum ) on 15 mins time frame . I do MNQ futures I do not have the logic, but I like mean reverssion variable , plus RSI etc . that could make the automated tool robust and long lasting. i need fast response if you have
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
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
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
1. PROJECT OVERVIEW Development of a custom automated and manual trading bot for NinjaTrader 8, primarily designed for Nasdaq Futures (NQ/MNQ). The bot will contain the original trading strategy, configurable risk management, automatic and manual operating modes, alerts, profit/loss management, partial profit taking, Break Even, backtesting functionality, and the additional configurable contract-averaging system
Hello, I have a custom indicator with a specific line. Logic I want: 1. When a candle closes and crosses the indicator line (I will tell you the buffer number of this line), start counting. 2. After the cross, wait for 3 consecutive candles with the same color / same direction. 3. If the 3 candles are bullish, open a BUY trade on the next candle open. 4. If the 3 candles are bearish, open a SELL trade on the
Ich möchte einen professionellen Expert Advisor (EA) für MetaTrader 5 entwickeln lassen, der sich funktional am ThunderGold Scalper orientiert. Instrument: XAUUSD / GOLD Zeitrahmen: M15 Plattform: MetaTrader 5 / MQL5 Der EA soll eine eigene, nachprogrammierte Strategie verwenden und keine geschützten Quellcodes oder proprietären Dateien des Originalprodukts kopieren. Gewünschte Funktionen: automatischer Handel auf

Project information

Budget
30 - 20000 USD
Deadline
from 1 to 30 day(s)