Spécifications

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.

Répondu

1
Développeur 1
Évaluation
(2)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(296)
Projets
368
30%
Arbitrage
37
27% / 65%
En retard
10
3%
Travail
Publié : 10 codes
3
Développeur 3
Évaluation
(408)
Projets
527
24%
Arbitrage
62
58% / 24%
En retard
60
11%
Travail
4
Développeur 4
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
5
Développeur 5
Évaluation
(4)
Projets
4
25%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Publié : 2 articles
6
Développeur 6
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
7
Développeur 7
Évaluation
(11)
Projets
13
31%
Arbitrage
0
En retard
2
15%
Travail
Publié : 1 code
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
11
Développeur 11
Évaluation
(2)
Projets
2
0%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(55)
Projets
92
24%
Arbitrage
8
75% / 13%
En retard
44
48%
Gratuit
14
Développeur 14
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
15
Développeur 15
Évaluation
(20)
Projets
26
38%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
16
Développeur 16
Évaluation
(16)
Projets
30
40%
Arbitrage
3
33% / 67%
En retard
7
23%
Travail
17
Développeur 17
Évaluation
(13)
Projets
14
64%
Arbitrage
0
En retard
0
Gratuit
18
Développeur 18
Évaluation
(16)
Projets
21
29%
Arbitrage
2
50% / 0%
En retard
4
19%
Gratuit
19
Développeur 19
Évaluation
(182)
Projets
291
65%
Arbitrage
4
100% / 0%
En retard
65
22%
Gratuit
20
Développeur 20
Évaluation
(10)
Projets
14
43%
Arbitrage
0
En retard
3
21%
Gratuit
21
Développeur 21
Évaluation
(3)
Projets
2
0%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
22
Développeur 22
Évaluation
(373)
Projets
465
56%
Arbitrage
24
58% / 17%
En retard
32
7%
Travail
23
Développeur 23
Évaluation
(4)
Projets
11
55%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
24
Développeur 24
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
25
Développeur 25
Évaluation
(106)
Projets
129
25%
Arbitrage
25
28% / 56%
En retard
8
6%
Gratuit
26
Développeur 26
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
27
Développeur 27
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
(61)
Projets
83
45%
Arbitrage
27
11% / 70%
En retard
8
10%
Gratuit
30
Développeur 30
Évaluation
(14)
Projets
23
35%
Arbitrage
0
En retard
2
9%
Travail
31
Développeur 31
Évaluation
(217)
Projets
285
20%
Arbitrage
28
61% / 14%
En retard
0
Gratuit
32
Développeur 32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
33
Développeur 33
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
34
Développeur 34
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
35
Développeur 35
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
36
Développeur 36
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
37
Développeur 37
Évaluation
(83)
Projets
100
34%
Arbitrage
9
22% / 56%
En retard
5
5%
Travail
38
Développeur 38
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
39
Développeur 39
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
40
Développeur 40
Évaluation
(2354)
Projets
2960
63%
Arbitrage
125
44% / 26%
En retard
429
14%
Travail
41
Développeur 41
Évaluation
(30)
Projets
37
38%
Arbitrage
0
En retard
2
5%
Travail
Publié : 1 code
42
Développeur 42
Évaluation
(81)
Projets
112
56%
Arbitrage
6
83% / 17%
En retard
5
4%
Travail
43
Développeur 43
Évaluation
(14)
Projets
17
18%
Arbitrage
2
0% / 100%
En retard
3
18%
Gratuit
44
Développeur 44
Évaluation
(568)
Projets
866
61%
Arbitrage
33
27% / 45%
En retard
24
3%
Travail
Publié : 1 code
45
Développeur 45
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
46
Développeur 46
Évaluation
(3)
Projets
4
0%
Arbitrage
1
100% / 0%
En retard
1
25%
Gratuit
47
Développeur 47
Évaluation
(25)
Projets
36
39%
Arbitrage
9
22% / 33%
En retard
5
14%
Chargé
Publié : 9 articles, 35 codes
48
Développeur 48
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
49
Développeur 49
Évaluation
(258)
Projets
269
29%
Arbitrage
2
50% / 0%
En retard
3
1%
Travail
Publié : 2 codes
50
Développeur 50
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
51
Développeur 51
Évaluation
(648)
Projets
876
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Gratuit
52
Développeur 52
Évaluation
(34)
Projets
35
40%
Arbitrage
0
En retard
3
9%
Gratuit
53
Développeur 53
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
54
Développeur 54
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
55
Développeur 55
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
1
100%
Gratuit
56
Développeur 56
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
57
Développeur 57
Évaluation
(2)
Projets
3
33%
Arbitrage
0
En retard
2
67%
Travail
58
Développeur 58
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
59
Développeur 59
Évaluation
(2683)
Projets
3435
68%
Arbitrage
78
49% / 14%
En retard
344
10%
Gratuit
Publié : 1 code
60
Développeur 60
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
61
Développeur 61
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
62
Développeur 62
Évaluation
(134)
Projets
174
40%
Arbitrage
10
40% / 10%
En retard
30
17%
Gratuit
63
Développeur 63
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
64
Développeur 64
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
65
Développeur 65
Évaluation
(45)
Projets
53
57%
Arbitrage
2
100% / 0%
En retard
1
2%
Gratuit
Publié : 5 codes
66
Développeur 66
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
67
Développeur 67
Évaluation
(10)
Projets
13
0%
Arbitrage
24
0% / 79%
En retard
4
31%
Gratuit
68
Développeur 68
Évaluation
(515)
Projets
554
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
69
Développeur 69
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
70
Développeur 70
Évaluation
(4)
Projets
5
0%
Arbitrage
0
En retard
0
Gratuit
71
Développeur 71
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
72
Développeur 72
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
73
Développeur 73
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
74
Développeur 74
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
75
Développeur 75
Évaluation
(74)
Projets
73
47%
Arbitrage
2
50% / 50%
En retard
2
3%
Gratuit
76
Développeur 76
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 codes
77
Développeur 77
Évaluation
(121)
Projets
134
66%
Arbitrage
36
25% / 56%
En retard
22
16%
Gratuit
Publié : 10 codes
78
Développeur 78
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
79
Développeur 79
Évaluation
(268)
Projets
319
74%
Arbitrage
16
75% / 0%
En retard
6
2%
Chargé
80
Développeur 80
Évaluation
(5)
Projets
5
0%
Arbitrage
5
0% / 40%
En retard
0
Gratuit
81
Développeur 81
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
82
Développeur 82
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
83
Développeur 83
Évaluation
(12)
Projets
13
8%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
84
Développeur 84
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
85
Développeur 85
Évaluation
(30)
Projets
45
16%
Arbitrage
2
0% / 100%
En retard
4
9%
Gratuit
86
Développeur 86
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
Hello, I'm looking for a developer who can build an automated trading bot (Expert Advisor) for MetaTrader 5 (MT5). I want a smart trading robot that can scan the markets, identify high-probability trading opportunities, and automatically execute trades. Strategies and indicators I'd like included: RSI (75 overbought / 25 oversold). MACD crossover with strong momentum. 9/21 EMA crossover. 20/50 SMA crossover. Smart
Delete/Remove . Integrate Support & Resistance . Prop Firm Expert. (Expert is Active With a firm's account) . (Tick Volume) spikes specifically when price interacts with pre-defined Support and Resistance zones. [ required ]
I am looking for an experienced MQL5 developer to create a simple, well-organized Expert Advisor for MetaTrader 5. Requirements: - Provide complete and editable MQL5 source code. - Explain the EA's functionality and logic clearly. - Include configurable settings. - Include appropriate risk-control features. - Provide clear installation and testing instructions. - Ensure the code is clean and properly documented. I
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 30% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
Okay, this is a big one for MT5 traders. Let's do it properly. In Python, the "Merge Tool" usually means 2 things: 1. *Merge MT5 data from different symbols / timeframes into one DataFrame* 2. *Plot it as a clean graph* Here is a complete working setup: *Step 1: Install* pip install MetaTrader5 pandas matplotlib mplfinance *Step 2: Full Code - Get MT5 Data + Merge + Plot* import MetaTrader5 as mt5 import pandas as pd
I'm looking for a developer to build a simple cloud-based monitoring and alert system for a trading account whose performance statistics are displayed on a third-party website. The system should: 1. Monitor the account's balance, equity and open positions. 2. Calculate the current floating drawdown as a percentage of account balance. 3. Send a single alert, preferably via WhatsApp or alternatively email, when
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 35% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5

Informations sur le projet

Budget
30 - 20000 USD
Délais
de 1 à 30 jour(s)