Development of a Trend Grid EA for XAUUSDm (MT5) - EMA + ATR Dynamic Spacing + Trailing Stop

Spécifications

【Project Overview】
Develop a simple, clean MT5 EA for XAUUSDm (Gold Mini) on a Cent account.
The strategy is a non-martingale trend grid using EMA for direction,
ATR for dynamic spacing, and trailing stop for exit.

【Strategy Logic】
1. Trend Direction (H1):
   - EMA(50) on H1. Price above EMA = Long only. Price below = Short only.

2. Entry (Pending Stop Orders):
   - Place stop orders in the trend direction.
   - Spacing = ATR(14) x 1.5 (range: min 300 points, max 600 points).
   - First order placed at current price + spacing.
   - Next order placed ONLY after previous order hits take profit.
   - Maximum 5 pending/active orders at any time.

3. Stop Loss:
   - Fixed 300 points (3 USD) per order.

4. Take Profit (Trailing Stop):
   - NO fixed take profit target.
   - When profit reaches 150 points, move stop loss to breakeven.
   - After breakeven, trail stop loss using H1 EMA(50):
     - Long: Stop follows EMA(50) upward only.
     - Short: Stop follows EMA(50) downward only.
   - Update once per H1 candle close.

5. Risk Management:
   - Fixed lot size: 0.01 per order (no martingale, no grid averaging).
   - Equity drawdown stop: 25% (close all positions, delete all pending orders).
   - Friday close: UTC 19:00 (close all, delete all).
   - Trading hours: UTC 00:05 - 13:55 only.

【External Parameters (All Adjustable)】
- EMA_Period: default 50, range 20-200
- EMA_Timeframe: default H1
- ATR_Period: default 14, range 7-30
- ATR_Multiplier: default 1.5, range 1.0-2.5
- Spacing_Min: default 300 (points)
- Spacing_Max: default 600 (points)
- StopLoss_Points: default 300, range 100-500
- Breakeven_Points: default 150, range 50-300
- Max_Orders: default 5, range 1-10
- Fixed_Lots: default 0.01, range 0.01-0.1
- Equity_Drawdown_Pct: default 25, range 10-50
- Magic_Number: default 888888
- Start_Time: default "00:05" (UTC)
- End_Time: default "13:55" (UTC)
- Friday_Close_Time: default "19:00" (UTC)
- Friday_Close_Enabled: default true

【Additional Requirements】
- Account binding: EA only runs on specified account numbers.
- Parameter encryption: Core parameters encrypted in source code. Provide a config tool.
- Chart: EA attached to M15 chart. Internal trend detection reads H1 data.
- Deliverables: Full unencrypted .mq5 source code, .ex5 file, parameter documentation, 2-year backtest report on XAUUSDm.

【Platform & Account】
- Platform: MT5
- Symbol: XAUUSDm
- Account: Cent account
- Leverage: 1:2000
- Server time: UTC+0
- 1 Pip = 0.01 price movement

【Acceptance Criteria】
- Direction filter (EMA50) works correctly.
- Pending stop orders placed with correct dynamic spacing.
- Next order only after previous TP.
- Max orders never exceeds 5.
- Stop loss 300 points per order enforced.
- Trailing stop via EMA50 works correctly.
- Equity drawdown 25% triggers full close.
- Friday close at UTC 19:00 works.
- Trading hours filter works.
- All external parameters functional.

Répondu

1
Développeur 1
Évaluation
(263)
Projets
329
29%
Arbitrage
36
25% / 64%
En retard
10
3%
Travail
2
Développeur 2
Évaluation
(75)
Projets
111
50%
Arbitrage
26
31% / 50%
En retard
9
8%
Gratuit
3
Développeur 3
Évaluation
(394)
Projets
555
41%
Arbitrage
30
57% / 3%
En retard
57
10%
Gratuit
Publié : 11 codes
4
Développeur 4
Évaluation
(434)
Projets
638
53%
Arbitrage
32
59% / 22%
En retard
6
1%
Travail
5
Développeur 5
Évaluation
(108)
Projets
177
25%
Arbitrage
24
17% / 75%
En retard
16
9%
Gratuit
6
Développeur 6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
(12)
Projets
18
17%
Arbitrage
3
33% / 67%
En retard
3
17%
Gratuit
8
Développeur 8
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
9
Développeur 9
Évaluation
(33)
Projets
38
21%
Arbitrage
5
0% / 60%
En retard
0
Gratuit
10
Développeur 10
Évaluation
(387)
Projets
499
23%
Arbitrage
60
55% / 25%
En retard
59
12%
Travail
11
Développeur 11
Évaluation
(454)
Projets
718
34%
Arbitrage
35
69% / 9%
En retard
22
3%
Travail
12
Développeur 12
Évaluation
(318)
Projets
565
35%
Arbitrage
81
31% / 44%
En retard
204
36%
Gratuit
13
Développeur 13
Évaluation
(12)
Projets
14
29%
Arbitrage
5
40% / 20%
En retard
0
Travail
Publié : 5 articles, 34 codes
14
Développeur 14
Évaluation
(12)
Projets
22
41%
Arbitrage
8
0% / 50%
En retard
3
14%
Gratuit
15
Développeur 15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Développeur 16
Évaluation
(52)
Projets
66
41%
Arbitrage
1
0% / 100%
En retard
7
11%
Gratuit
17
Développeur 17
Évaluation
(460)
Projets
802
48%
Arbitrage
73
19% / 52%
En retard
140
17%
Travail
18
Développeur 18
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Travail
Publié : 1 code
19
Développeur 19
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
20
Développeur 20
Évaluation
(52)
Projets
67
58%
Arbitrage
4
75% / 25%
En retard
1
1%
Chargé
21
Développeur 21
Évaluation
(20)
Projets
28
4%
Arbitrage
4
0% / 100%
En retard
5
18%
Travail
22
Développeur 22
Évaluation
(3)
Projets
3
33%
Arbitrage
0
En retard
0
Gratuit
23
Développeur 23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
24
Développeur 24
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
25
Développeur 25
Évaluation
(4)
Projets
8
0%
Arbitrage
3
33% / 67%
En retard
4
50%
Gratuit
26
Développeur 26
Évaluation
(9)
Projets
14
43%
Arbitrage
1
100% / 0%
En retard
2
14%
Travail
27
Développeur 27
Évaluation
(20)
Projets
26
38%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
28
Développeur 28
Évaluation
(3)
Projets
2
0%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
29
Développeur 29
Évaluation
(93)
Projets
111
17%
Arbitrage
6
33% / 17%
En retard
5
5%
Gratuit
Publié : 1 code
30
Développeur 30
Évaluation
(202)
Projets
263
22%
Arbitrage
23
52% / 17%
En retard
0
Travail
31
Développeur 31
Évaluation
(61)
Projets
83
45%
Arbitrage
27
11% / 70%
En retard
8
10%
Gratuit
32
Développeur 32
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
33
Développeur 33
Évaluation
(27)
Projets
33
36%
Arbitrage
0
En retard
2
6%
Gratuit
34
Développeur 34
Évaluation
(252)
Projets
296
76%
Arbitrage
13
77% / 0%
En retard
4
1%
Travail
35
Développeur 35
Évaluation
(55)
Projets
92
24%
Arbitrage
8
75% / 13%
En retard
44
48%
Gratuit
36
Développeur 36
Évaluation
(9)
Projets
10
10%
Arbitrage
0
En retard
0
Gratuit
37
Développeur 37
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
38
Développeur 38
Évaluation
(2)
Projets
7
0%
Arbitrage
3
0% / 33%
En retard
1
14%
Travail
39
Développeur 39
Évaluation
(169)
Projets
179
46%
Arbitrage
3
33% / 33%
En retard
1
1%
Travail
40
Développeur 40
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
41
Développeur 41
Évaluation
(2672)
Projets
3406
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Gratuit
Publié : 1 code
42
Développeur 42
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
43
Développeur 43
Évaluation
(31)
Projets
33
42%
Arbitrage
0
En retard
3
9%
Gratuit
44
Développeur 44
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
45
Développeur 45
Évaluation
(8)
Projets
9
56%
Arbitrage
0
En retard
0
Travail
46
Développeur 46
Évaluation
(2332)
Projets
2935
63%
Arbitrage
124
44% / 26%
En retard
429
15%
Gratuit
47
Développeur 47
Évaluation
(365)
Projets
441
55%
Arbitrage
22
50% / 14%
En retard
30
7%
Chargé
48
Développeur 48
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
49
Développeur 49
Évaluation
(25)
Projets
31
13%
Arbitrage
13
0% / 77%
En retard
9
29%
Gratuit
50
Développeur 50
Évaluation
(25)
Projets
32
19%
Arbitrage
5
40% / 40%
En retard
4
13%
Gratuit
51
Développeur 51
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
52
Développeur 52
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
53
Développeur 53
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
54
Développeur 54
Évaluation
(13)
Projets
24
75%
Arbitrage
0
En retard
2
8%
Gratuit
Publié : 62 codes
55
Développeur 55
Évaluation
(317)
Projets
322
70%
Arbitrage
2
100% / 0%
En retard
0
Gratuit
Publié : 1 code
56
Développeur 56
Évaluation
(162)
Projets
289
35%
Arbitrage
18
22% / 61%
En retard
43
15%
Gratuit
57
Développeur 57
Évaluation
(548)
Projets
833
62%
Arbitrage
33
27% / 45%
En retard
24
3%
Gratuit
Publié : 1 code
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
Commandes similaires
*Need an MQL5 EA for MT5 to trade gold and forex automatically. Must include Stop Loss, Take Profit, and basic risk management. Budget is $30 to $50. Looking for clean, stable code that works on VPS.*
Professional MT5 Expert Advisor – Multi-Engine Trading Framework Description I'm looking for an experienced MQL5 developer to build a professional MetaTrader 5 Expert Advisor. This is not a simple indicator-based EA. The system should be designed using a modular architecture with a strong focus on maintainability, optimization, and future scalability. The first version should include the following features. Market
Description: I need an experienced MQL5 developer to build a professional MT5 Expert Advisor for XAU/USD based on my trading strategy. I require the full .mq5 source code and the compiled file. Trading Logic: Timeframes: H4 to determine overall direction, H1 for supply and demand zones, M15 for trade entries. Buy conditions: H4 trend is bullish, price reaches a valid H1 demand zone, liquidity sweep occurs below the
Standby Description . Prop Firm Environment . ( Monitor Execution and Handling Environment Changes as Required ) . Technical Issues . Delete extra lines of code (Clean Code , Folder) . Asset related translation , no need for Logic Alteration
MultiPair_PriceAction 30 - 200 USD
OANDA market watch clock and symbols (.sim) Multipair able so i can choose at least 6 of those more volatile forex pairs. Price Action setups instead of relay on lag indicators. But rsi for confirmation. Spread protection, position management, magic number editor, hours trading. Volatility protection Trailing Stop, Stop losses, take profit. Percentage and ATR scale instead of dollars or lot sizes. Funds management
Looking for an MT5 Expert Advisor developer with: Minimum 1 year of verified activity on the MetaTrader Market Positive, real user reviews Ability to build EAs without Bollinger Bands Fully configurable parameters (risk, filters, SL/TP, trading hours) Free test version available before any payment Clear communication and ongoing support If you meet these requirements, please send your MQL5 profile or portfolio
I want to create a EA based on an existing EA. I want to create a COPY of same EA. This is a Grid based EA and do averaging when market goes against it. While doing Averaging it keeps on taking trades and booking profits
Akram boushaba 30 - 500 USD
مرحبا كيف حالكم انا اكرم مهتم بالتداول احاول ان اصمم برنامج روبوت قادر على التداول من تلقاء نفسه من يمكنه ان يساعدني او يعلمني كيف استطيع فهل ذلك وسأكون ممتناً له وشكرا لكم
Looking for someone who is experienced in creating MT5 EA from scratch to go over 7 public youtube videos (total duration about 5 hours) and extract the strategy code taught in the videos to make a MT5 .mq5 source code file. Full code is explained in the 7 videos so it's just a matter of going over the videos and extracting the relevant parts that relate to the source code and compiling it into a working EA. The
EA Crafter 500+ USD
Act as a professional Quantitative Developer and Risk Manager. I want to build a systematic trading strategy rulebook that prioritizes capital preservation and statistical edge over raw performance. Please generate a structured trading strategy using the following framework: 1. ASSET CLASS & TIMEFRAME: - Asset: [e.g., Apple (AAPL), Bitcoin (BTC), or EUR/USD] - Timeframe: [e.g., 5-minute, 1-hour, Daily] 2. CORE

Informations sur le projet

Budget
200 - 300 USD
Délais
à 14 jour(s)

Client

Commandes passées1
Nombre d'arbitrages0