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
(2)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(296)
Projects
368
30%
Arbitration
37
27% / 65%
Overdue
10
3%
Working
Published: 10 codes
3
Developer 3
Rating
(408)
Projects
527
24%
Arbitration
62
58% / 24%
Overdue
60
11%
Working
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
(11)
Projects
13
31%
Arbitration
0
Overdue
2
15%
Working
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
Published: 4 codes
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
(1)
Projects
1
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
(16)
Projects
30
40%
Arbitration
3
33% / 67%
Overdue
7
23%
Working
17
Developer 17
Rating
(13)
Projects
14
64%
Arbitration
0
Overdue
0
Free
18
Developer 18
Rating
(16)
Projects
21
29%
Arbitration
2
50% / 0%
Overdue
4
19%
Free
19
Developer 19
Rating
(182)
Projects
291
65%
Arbitration
4
100% / 0%
Overdue
65
22%
Free
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
(373)
Projects
465
56%
Arbitration
24
58% / 17%
Overdue
32
7%
Working
23
Developer 23
Rating
(4)
Projects
11
55%
Arbitration
1
100% / 0%
Overdue
0
Free
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
(14)
Projects
23
35%
Arbitration
0
Overdue
2
9%
Working
31
Developer 31
Rating
(217)
Projects
285
20%
Arbitration
28
61% / 14%
Overdue
0
Free
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
100
34%
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
(2354)
Projects
2960
63%
Arbitration
125
44% / 26%
Overdue
429
14%
Working
41
Developer 41
Rating
(30)
Projects
37
38%
Arbitration
0
Overdue
2
5%
Working
Published: 1 code
42
Developer 42
Rating
(81)
Projects
112
56%
Arbitration
6
83% / 17%
Overdue
5
4%
Working
43
Developer 43
Rating
(14)
Projects
17
18%
Arbitration
2
0% / 100%
Overdue
3
18%
Free
44
Developer 44
Rating
(568)
Projects
866
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Working
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
(25)
Projects
36
39%
Arbitration
9
22% / 33%
Overdue
5
14%
Loaded
Published: 9 articles, 35 codes
48
Developer 48
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
49
Developer 49
Rating
(258)
Projects
269
29%
Arbitration
2
50% / 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
(648)
Projects
876
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Free
52
Developer 52
Rating
(34)
Projects
35
40%
Arbitration
0
Overdue
3
9%
Free
53
Developer 53
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
54
Developer 54
Rating
(1)
Projects
1
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
(2)
Projects
3
33%
Arbitration
0
Overdue
2
67%
Working
58
Developer 58
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
59
Developer 59
Rating
(2683)
Projects
3435
68%
Arbitration
78
49% / 14%
Overdue
344
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% / 79%
Overdue
4
31%
Free
68
Developer 68
Rating
(515)
Projects
554
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
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
(268)
Projects
319
74%
Arbitration
16
75% / 0%
Overdue
6
2%
Loaded
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
Hello, looking for a profitable long term bot to use on real live capital. No martingale allowed. Willing to also give % base ofnprofits for performing fees. Backtest is a must with real ticks
I NEED A PROFITABLE FOREX /FUTURES TRADING ROBOT. A VERY SIMPLE PROFITABLE TRADING ROBOT WITH 3 TECHNICAL CHECKS [AN MQL5 FOREX/FUTURES BOT] . THAT I CAN BOTH USED ON MY PRIVATE LIVE ACCOUNT AND PROP FIRM CHALENGE ACCOUNT. THE STRATEGIES / LOGIC AND THE ARGORITHM CAN BE ANY PRICE ACTION BOT, IT CAN ANY PRICE ACTION COMBINED WITH ANY INDICATOR TO FILTER THE TREND OR TO GIVE ME THE TREND. THESE ARE MUST HALF PARAMETERS
Seeking an Established and Profitable Gold Scalping System – MT5 I am a serious buyer looking to acquire an existing, fully operational Expert Advisor specifically designed for scalping XAUUSD (Gold) on MetaTrader 5. I am particularly interested in experienced developers and quantitative traders who have developed successful proprietary trading systems, including systems that are not publicly available on the MQL5
I am looking for the original developer from Egypt who sent me the MJ v3.01 Gold EA (mj.ex5) on December 2, 2026, with a 10-day demo trial. You were Developer #28 in my previous Freelance job and offered the EA for $200. Unfortunately, I lost access to our previous conversation and would like to reconnect with you. I am still interested in your EA and would like to complete the testing, discuss the settings, and
EA 30+ USD
Build an MT5 Expert Advisor using MQL5. I want an automated trading bot for Exness MT5. Markets: XAUUSD (Gold) BTCUSD (Bitcoin), subject to the broker's actual symbol name. Trading strategy: H1 timeframe for trend direction. M15 timeframe for trade entries. EMA 20 and EMA 50 for trend identification. Only buy when the confirmed trend is bullish. Only sell when the confirmed trend is bearish. Use candle-close
Gulu 30+ USD
create money on forex ensuring nothing but profit basically also crypto an d ensure you use every means possible to ensure in turn a profit is made that what i want i want perfection
If you already have a working gold order-flow EA that matches the logic described here, I'm open to buying or licensing it instead of a custom build. Please provide: A demo version that I can run in the MT5 Strategy Tester (for example, a time-limited or demo-account-only build) A clear explanation of the trading logic: what triggers an entry, how the stop loss and take profit are set, and which order-flow or
I'm looking to purchase an already-developed, profitable trading bot specifically for Deriv. I'm not interested in building a new one from scratch. The bot must have a test version that I can try out, as well as verifiable historical live trading results demonstrating its profitability. I'm only interested in proven bots with a track record of real-market performance
I am looking to purchase an existing, fully developed and operational XAUUSD scalping Expert Advisor (EA) for MetaTrader 5. IMPORTANT: I am NOT looking for new development, custom programming, or an experimental strategy. I am only interested in an existing, ready-made and proven trading system. Requirements: Fully automated XAUUSD scalping EA for MT5. Short-duration trades with an active trading frequency. Hard Stop
The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is

Project information

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