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
(290)
Projects
362
30%
Arbitration
37
27% / 65%
Overdue
10
3%
Loaded
Published: 10 codes
3
Developer 3
Rating
(402)
Projects
520
24%
Arbitration
61
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
(10)
Projects
12
33%
Arbitration
0
Overdue
2
17%
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
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
(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
290
64%
Arbitration
4
75% / 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
(369)
Projects
459
55%
Arbitration
24
58% / 17%
Overdue
31
7%
Free
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
(12)
Projects
20
35%
Arbitration
0
Overdue
1
5%
Working
31
Developer 31
Rating
(213)
Projects
276
21%
Arbitration
25
52% / 16%
Overdue
0
Loaded
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
97
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
(2350)
Projects
2956
63%
Arbitration
125
44% / 26%
Overdue
429
15%
Free
41
Developer 41
Rating
(29)
Projects
36
39%
Arbitration
0
Overdue
2
6%
Free
42
Developer 42
Rating
(76)
Projects
102
56%
Arbitration
5
80% / 20%
Overdue
5
5%
Loaded
43
Developer 43
Rating
(14)
Projects
17
18%
Arbitration
2
0% / 100%
Overdue
3
18%
Free
44
Developer 44
Rating
(559)
Projects
854
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
(23)
Projects
31
42%
Arbitration
10
20% / 30%
Overdue
3
10%
Loaded
Published: 8 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
(647)
Projects
875
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Working
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
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
(1)
Projects
2
50%
Arbitration
0
Overdue
1
50%
Working
58
Developer 58
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
59
Developer 59
Rating
(2676)
Projects
3419
68%
Arbitration
77
48% / 14%
Overdue
343
10%
Working
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
(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
(264)
Projects
310
75%
Arbitration
15
67% / 0%
Overdue
6
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
Scalping bort 30+ USD
GOLD SCALPING BOT STRATEGY Symbol: XAUUSD (Gold vs USD) Broker: Exness Account: Standard Starting Balance: $20 1. TIMEFRAME - Trend analysis: M15. - Entry timeframe: M5. - Trade only when the market has a clear direction. 2. INDICATORS - EMA 50 - EMA 200 - RSI 14 - Support and Resistance 3. BUY RULES The bot must open a BUY trade only when all these conditions are met: 1. EMA 50 is above EMA 200 on M15. 2. Price is
Request for an Existing Automated Trading System (Expert Advisor) I am looking to acquire an existing, fully functional Expert Advisor (EA) that trades Forex CFDs, with the option of trading other CFDs if the strategy supports them safely. Performance objectives Target average net monthly return: 1.5%. A consistent 1.0% monthly return may be considered if the system demonstrates strong risk control and credible
Are you able to build one bot for stock and one for ninja trader and tell me the win rate on it. I need ninja trader bot that enter buy and exit according the move to do not stay long in the market in each entry . That can follow the smart money concept or other if you have a good one
I need a TradingView Pine Script (v6) indicator that gives BUY and SELL signals in real time on the live chart. MAIN REQUIREMENT – NO REPAINTING: 1. Signals must appear only when the candle closes (barstate.isconfirmed). Example: on 1-min chart, signal for the 10:35 candle must appear at 10:36 and never disappear or move. 2. Signals on historical bars must look exactly the same as they looked live. 3. No lookahead
Trading bot ea 30+ USD
yoo i want to make a trading bot i have my strategy in videos and also the rules to if anyone can work it out for me i will be glad welcome your bid and it urget let connect here on mgl5 And if you know you can not do the project without getting paid first please don't bid thanks
SKBOT 35+ USD
want an MQL5 Expert Advisor (EA) for MetaTrader 5, mainly for XAUUSD (Gold). Strategy: The EA should trade based on market structure, Break of Structure (BOS), Fair Value Gaps (FVG), Order Blocks (OB), and Fibonacci retracement levels. BUY setup: Detect bullish market structure. Detect a bullish Break of Structure (BOS). Identify the relevant bullish FVG and/or Order Block created around the structure move. Use
i have indicator for Trading View, also copy for NT, i need someone to improve and check the NT version (indicator is simple is volume density koncept)…. when i put same settings on TV version and NT version i have diffrerent results, but this can be because diffrent market data or fact that TV sending tick info in blocks , not tick by tick like NT8 on both. I(ndicator base on counting volume) so besied that is it
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
looking for a highly experienced mql5 developer to build a professional trading ea based on multi timeframe top down analysis and market structure concepts the system should combine higher timeframe context with lower timeframe execution and provide both precise logic and clean visual representation on chart ⸻ core requirements • implementation of multi timeframe logic higher timeframe bias combined with lower

Project information

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