TrendPulse EMA Wick EA

MQL5 Indicateurs Forex

Spécifications

EA specification for MT5 developer (coder‑ready spec)

You can copy‑paste this directly into an MQL5 Freelance job.

---

1. General

* Platform: MetaTrader 5 (MT5)
* Type: Expert Advisor (EA)
* Markets: Major FX pairs (configurable list via inputs)
* Execution: Market orders only
* Timeframes: EA must work on any timeframe, but I will mainly use it on M15–H1


---

2. Indicators & definitions

* EMA 20: Exponential Moving Average, period 20, applied to Close
* EMA 50: Exponential Moving Average, period 50, applied to Close


Trend definition:

* Uptrend:• Close price above both EMA 20 and EMA 50
* EMA 20 > EMA 50

* Downtrend:• Close price below both EMA 20 and EMA 50
* EMA 20 < EMA 50



EMA zone:

* Area between EMA 20 and EMA 50.
* Flexible boundary: Candle body can be inside or touching the zone; slight overlap is allowed, but close must not be clearly outside the zone.


---

3. Candle structure calculations

For each candle considered for entry:

* Body size: abs(Close - Open)
* Upper wick: High - max(Open, Close)
* Lower wick: min(Open, Close) - Low


2:1 wick‑to‑body rule:

* Directional wick size must be ≥ 2 × body size.
* If body size = 0 (perfect doji), treat body size as a very small epsilon to avoid division by zero but still allow valid doji.


---

4. Entry logic

4.1 Common filters (both long and short)

A candle is a candidate entry candle only if:

1. No gap candle:• Current candle Open is not significantly gapped from previous Close (define gap as input in points; if gap > threshold → skip candle).

2. Candle close location:• Close must be inside or touching the EMA 20–50 zone (flexible boundary as described).

3. 2:1 directional wick ratio:• Directional wick ≥ 2 × body size.

4. Trend‑colored close:• In uptrend → bullish candle (Close > Open).
* In downtrend → bearish candle (Close < Open).

5. Any body size allowed:• Small, medium, large, including doji, as long as 2:1 wick rule and trend‑colored close are satisfied.



4.2 Long entry (buy)

Conditions on the signal candle:

1. Market in uptrend (as defined above).
2. Candle pulls back into EMA zone:• At least part of the candle (wick or body) touches or is inside the EMA 20–50 zone.

3. Directional wick filter:• Use lower wick only.
* Lower wick ≥ 2 × body size.

4. Candle closes bullish (Close > Open).
5. Candle closes inside or touching EMA zone (flexible boundary).
6. Optional engulfing enhancement (see section 5).


If all conditions are met and no open trade on that symbol (configurable: allow 1 trade per symbol), EA opens a market Buy.

4.3 Short entry (sell)

Conditions on the signal candle:

1. Market in downtrend.
2. Candle pulls back into EMA zone.
3. Directional wick filter:• Use upper wick only.
* Upper wick ≥ 2 × body size.

4. Candle closes bearish (Close < Open).
5. Candle closes inside or touching EMA zone.
6. Optional engulfing enhancement (see section 5).


If all conditions are met and no open trade on that symbol (configurable), EA opens a market Sell.

---

5. Engulfing logic (enhanced entries)

Engulfing is allowed and acts as an additional confirmation, but not mandatory for every trade (make this an input: UseEngulfingFilter = true/false).

When UseEngulfingFilter = true:

* Full‑candle engulfing only:• Current candle’s High ≥ previous candle’s High AND
* Current candle’s Low ≤ previous candle’s Low.

* Trend‑direction engulfing only:• In uptrend: bullish engulfing (current candle bullish and full‑engulfing upward).
* In downtrend: bearish engulfing (current candle bearish and full‑engulfing downward).



If enabled, engulfing condition must be satisfied in addition to all other entry rules.

---

6. Risk management & position sizing

* Risk per trade: input as percentage of account balance (default 0.25%).
* Stop loss placement:• For Buy: SL a few points below the low of the signal candle (input: SLBufferPoints).
* For Sell: SL a few points above the high of the signal candle.

* Lot size is calculated so that the distance from entry to SL equals the specified risk % of balance.


---

7. Trade management

* Take profit:• Option 1: No fixed TP, use trailing stop only (default).
* Option 2: Optional RR‑based TP (input: UseFixedRR, RR_Target).

* Dynamic trailing stop:• Input: choose mode (e.g., ATR‑based or swing‑based).
* For simplicity, please implement:• ATR‑based trailing:• Input: ATRPeriod, ATRMultiplier.
* For Buy: trail SL to Bid - ATR * Multiplier when this is higher than current SL.
* For Sell: trail SL to Ask + ATR * Multiplier when this is lower than current SL.


* Trailing should only move in the direction of profit (never widen SL).

* Full‑position hold:• No partial closes.
* Trade exits only by SL, trailing stop, or optional TP.



---

8. Session filter

* Inputs:• UseSessionFilter = true/false
* Session1Start, Session1End (e.g., London)
* Session2Start, Session2End (e.g., New York)

* EA opens new trades only during allowed sessions.
* Existing trades can be managed (trailing, SL hit, TP hit) outside sessions.


---

9. News filter (basic)

If possible:

* Input: UseNewsFilter = true/false.
* If you can integrate MT5 news or a simple external file/indicator:• Do not open new trades within X minutes before high‑impact news (input: MinutesBeforeNews).
* Optionally: close trades Y minutes before news (input: CloseBeforeNews = true/false, MinutesCloseBeforeNews).



If full news integration is complex, please propose a simple, robust solution or leave hooks for a news indicator.

---

10. Other controls

* Max trades per symbol: input (default 1).
* Max total open trades: input.
* Magic number: input.
* Slippage: input.
* Spread filter: input max spread in points; if current spread > max, skip new entries.
* Daily loss limit (optional):• Input: UseDailyLossLimit = true/false, MaxDailyLossPercent.
* If today’s closed P/L + floating P/L ≤ −MaxDailyLossPercent of balance, EA stops opening new trades for the day.



---

11. Coding quality

* Clean, well‑commented MQL5 code.
* All key parameters as extern/inputs.
* EA must handle errors (requotes, trade context busy, etc.).
* Must work on any broker (4/5 digits, different symbols suffixes).


---

If anything is unclear, the coder can ask for clarification, but this is the full logic I want implemented.

Répondu

1
Développeur 1
Évaluation
(2672)
Projets
3408
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(31)
Projets
33
42%
Arbitrage
0
En retard
3
9%
Gratuit
3
Développeur 3
Évaluation
(33)
Projets
36
33%
Arbitrage
5
0% / 80%
En retard
0
Travail
Publié : 2 codes
4
Développeur 4
Évaluation
Projets
1
0%
Arbitrage
0
En retard
1
100%
Gratuit
5
Développeur 5
Évaluation
(1)
Projets
0
0%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
6
Développeur 6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(10)
Projets
12
0%
Arbitrage
3
33% / 33%
En retard
1
8%
Gratuit
8
Développeur 8
Évaluation
(851)
Projets
1461
72%
Arbitrage
122
29% / 48%
En retard
356
24%
Travail
Publié : 3 articles
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(454)
Projets
720
34%
Arbitrage
35
71% / 9%
En retard
22
3%
Gratuit
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
(549)
Projets
836
61%
Arbitrage
33
27% / 45%
En retard
24
3%
Travail
Publié : 1 code
13
Développeur 13
Évaluation
(27)
Projets
33
42%
Arbitrage
4
50% / 50%
En retard
3
9%
Travail
14
Développeur 14
Évaluation
(45)
Projets
91
13%
Arbitrage
34
26% / 59%
En retard
37
41%
Gratuit
15
Développeur 15
Évaluation
(106)
Projets
129
25%
Arbitrage
24
29% / 54%
En retard
8
6%
Gratuit
16
Développeur 16
Évaluation
(258)
Projets
267
30%
Arbitrage
0
En retard
3
1%
Travail
Publié : 2 codes
17
Développeur 17
Évaluation
(4)
Projets
3
33%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
18
Développeur 18
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
19
Développeur 19
Évaluation
(8)
Projets
8
0%
Arbitrage
2
50% / 0%
En retard
1
13%
Travail
20
Développeur 20
Évaluation
(268)
Projets
602
34%
Arbitrage
65
20% / 57%
En retard
147
24%
Travail
Publié : 1 article, 22 codes
21
Développeur 21
Évaluation
(4)
Projets
5
0%
Arbitrage
0
En retard
0
Gratuit
22
Développeur 22
Évaluation
(21)
Projets
27
7%
Arbitrage
9
33% / 33%
En retard
1
4%
Travail
23
Développeur 23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
24
Développeur 24
Évaluation
(5)
Projets
7
29%
Arbitrage
1
100% / 0%
En retard
2
29%
Travail
25
Développeur 25
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
26
Développeur 26
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
27
Développeur 27
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
28
Développeur 28
Évaluation
(365)
Projets
442
55%
Arbitrage
22
50% / 14%
En retard
30
7%
Chargé
29
Développeur 29
Évaluation
(611)
Projets
711
33%
Arbitrage
45
49% / 42%
En retard
14
2%
Travail
30
Développeur 30
Évaluation
(48)
Projets
58
34%
Arbitrage
15
27% / 60%
En retard
1
2%
Travail
31
Développeur 31
Évaluation
(169)
Projets
180
46%
Arbitrage
3
33% / 33%
En retard
1
1%
Travail
32
Développeur 32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
33
Développeur 33
Évaluation
(81)
Projets
93
31%
Arbitrage
9
22% / 56%
En retard
5
5%
Travail
34
Développeur 34
Évaluation
(169)
Projets
202
48%
Arbitrage
5
20% / 60%
En retard
2
1%
Gratuit
35
Développeur 35
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
36
Développeur 36
Évaluation
(8)
Projets
14
21%
Arbitrage
2
0% / 50%
En retard
3
21%
Travail
37
Développeur 37
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
38
Développeur 38
Évaluation
(2336)
Projets
2939
63%
Arbitrage
124
44% / 26%
En retard
429
15%
Travail
39
Développeur 39
Évaluation
(25)
Projets
31
13%
Arbitrage
13
0% / 77%
En retard
9
29%
Gratuit
40
Développeur 40
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
41
Développeur 41
Évaluation
(119)
Projets
169
38%
Arbitrage
9
78% / 22%
En retard
15
9%
Gratuit
42
Développeur 42
Évaluation
(22)
Projets
29
34%
Arbitrage
4
50% / 25%
En retard
5
17%
Travail
43
Développeur 43
Évaluation
(1)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
44
Développeur 44
Évaluation
(202)
Projets
263
22%
Arbitrage
23
52% / 17%
En retard
0
Chargé
45
Développeur 45
Évaluation
(14)
Projets
15
20%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
46
Développeur 46
Évaluation
(44)
Projets
51
59%
Arbitrage
2
100% / 0%
En retard
1
2%
Gratuit
Publié : 5 codes
47
Développeur 47
Évaluation
(58)
Projets
72
60%
Arbitrage
4
75% / 25%
En retard
1
1%
Chargé
48
Développeur 48
Évaluation
(28)
Projets
34
35%
Arbitrage
0
En retard
2
6%
Gratuit
49
Développeur 49
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 codes
50
Développeur 50
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
51
Développeur 51
Évaluation
(256)
Projets
300
76%
Arbitrage
13
77% / 0%
En retard
4
1%
Travail
52
Développeur 52
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
53
Développeur 53
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
54
Développeur 54
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
55
Développeur 55
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
56
Développeur 56
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
57
Développeur 57
Évaluation
(225)
Projets
285
41%
Arbitrage
15
13% / 47%
En retard
67
24%
Gratuit
58
Développeur 58
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
59
Développeur 59
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
60
Développeur 60
Évaluation
Projets
0
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
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including
Mac200 50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
I I would like to create a trading robot based on 2 ema crossing. The robot is pretty simple, it should open buy position when fast ema cross slow ema and vise versa. Also it should use martingale after the loss position. It should has expiration period inside the code and alerts l
1. The general process is: Automated online forex marketing to find potential clients -> Answering potential clients' questions -> Converting them into actual clients -> Opening accounts, depositing funds, and copying trades. 2. Developers could implement an AI Digital Twin/Shadow Agent to answer customer questions, eliminating the need for me to answer customer inquiries. 3. I have a CTA website and I'm manually
Iconic Boy 300 - 400 USD
Am looking for a bot to trade .so that I can be able to trade and become very successful and make some profit so that I cannot sleep on a empty stomach
I am looking for an experienced MQL5 developer who can help me convert my manual trading strategy into a fully automated Expert Advisor (EA) for MetaTrader 5. The project should begin with a detailed discussion of my manual trading strategy. Before starting the actual EA development, the developer must understand and analyze the complete trading logic and determine how the strategy can be converted into clear
Hello Traders and Investors, I am a professional algorithmic trading developer specialized in building high-quality Expert Advisors (EAs), Indicators, Scripts, and Trade Management Tools for MetaTrader 4 and MetaTrader 5. With extensive experience in financial markets and trading automation, I can transform your trading ideas into reliable and efficient solutions with clean, optimized, and well-structured code. My
Hello, I’m a profitable MT4/MT5 trader specializing in Prop Firm accounts. What makes me different: I actually trade with 3% Daily DD / 5% Overall DD rules, so I know what blows accounts and what passes. Services I offer: 1. EA Backtesting + Detailed Reports - Winrate, Profit Factor, Max DD, Best Pairs/Timeframes 2. Strategy Documentation - I’ll write clear rules for your EA so any coder can build it 3. Prop Firm
Hello, I’m a profitable MT4/MT5 trader specializing in Prop Firm accounts. What makes me different: I actually trade with 3% Daily DD / 5% Overall DD rules, so I know what blows accounts and what passes. Services I offer: 1. EA Backtesting + Detailed Reports - Winrate, Profit Factor, Max DD, Best Pairs/Timeframes 2. Strategy Documentation - I’ll write clear rules for your EA so any coder can build it 3. Prop Firm
Supply and Demand EA 50 - 250 USD
I need a SnD EA. Prefer coder who has previous experience coding SnD EA. PO are based on (CHoCH or BoS) and 3EMA, order block (from my TradingView indicator), area based on Fibonacci. SL options are based on fix pips or zone size; CL is based on candle closing. TP1 and TP2 options are based on fix pips or fix ratio. Canceling PO is based on market structure or Fibonacci. Money management are based on fix volume or

Informations sur le projet

Budget
50 - 200 USD
Délais
de 1 à 10 jour(s)