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

Specification

【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.

Responded

1
Developer 1
Rating
(263)
Projects
329
29%
Arbitration
36
25% / 64%
Overdue
10
3%
Working
2
Developer 2
Rating
(75)
Projects
111
50%
Arbitration
26
31% / 50%
Overdue
9
8%
Free
3
Developer 3
Rating
(394)
Projects
555
41%
Arbitration
30
57% / 3%
Overdue
57
10%
Free
Published: 11 codes
4
Developer 4
Rating
(434)
Projects
638
53%
Arbitration
32
59% / 22%
Overdue
6
1%
Working
5
Developer 5
Rating
(108)
Projects
177
25%
Arbitration
24
17% / 75%
Overdue
16
9%
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(12)
Projects
18
17%
Arbitration
3
33% / 67%
Overdue
3
17%
Free
8
Developer 8
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
9
Developer 9
Rating
(33)
Projects
38
21%
Arbitration
5
0% / 60%
Overdue
0
Free
10
Developer 10
Rating
(387)
Projects
499
23%
Arbitration
60
55% / 25%
Overdue
59
12%
Working
11
Developer 11
Rating
(454)
Projects
718
34%
Arbitration
35
69% / 9%
Overdue
22
3%
Working
12
Developer 12
Rating
(318)
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
13
Developer 13
Rating
(12)
Projects
14
29%
Arbitration
5
40% / 20%
Overdue
0
Working
Published: 5 articles, 34 codes
14
Developer 14
Rating
(12)
Projects
22
41%
Arbitration
8
0% / 50%
Overdue
3
14%
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(52)
Projects
66
41%
Arbitration
1
0% / 100%
Overdue
7
11%
Free
17
Developer 17
Rating
(460)
Projects
802
48%
Arbitration
73
19% / 52%
Overdue
140
17%
Working
18
Developer 18
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Working
Published: 1 code
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(52)
Projects
67
58%
Arbitration
4
75% / 25%
Overdue
1
1%
Loaded
21
Developer 21
Rating
(20)
Projects
28
4%
Arbitration
4
0% / 100%
Overdue
5
18%
Working
22
Developer 22
Rating
(3)
Projects
3
33%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
26
Developer 26
Rating
(9)
Projects
14
43%
Arbitration
1
100% / 0%
Overdue
2
14%
Working
27
Developer 27
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
28
Developer 28
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
29
Developer 29
Rating
(93)
Projects
111
17%
Arbitration
6
33% / 17%
Overdue
5
5%
Free
Published: 1 code
30
Developer 30
Rating
(202)
Projects
263
22%
Arbitration
23
52% / 17%
Overdue
0
Working
31
Developer 31
Rating
(61)
Projects
83
45%
Arbitration
27
11% / 70%
Overdue
8
10%
Free
32
Developer 32
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
33
Developer 33
Rating
(27)
Projects
33
36%
Arbitration
0
Overdue
2
6%
Free
34
Developer 34
Rating
(252)
Projects
296
76%
Arbitration
13
77% / 0%
Overdue
4
1%
Working
35
Developer 35
Rating
(55)
Projects
92
24%
Arbitration
8
75% / 13%
Overdue
44
48%
Free
36
Developer 36
Rating
(9)
Projects
10
10%
Arbitration
0
Overdue
0
Free
37
Developer 37
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
38
Developer 38
Rating
(2)
Projects
7
0%
Arbitration
3
0% / 33%
Overdue
1
14%
Working
39
Developer 39
Rating
(169)
Projects
179
46%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
40
Developer 40
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
41
Developer 41
Rating
(2672)
Projects
3406
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
42
Developer 42
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
43
Developer 43
Rating
(31)
Projects
33
42%
Arbitration
0
Overdue
3
9%
Free
44
Developer 44
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
45
Developer 45
Rating
(8)
Projects
9
56%
Arbitration
0
Overdue
0
Working
46
Developer 46
Rating
(2332)
Projects
2935
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Free
47
Developer 47
Rating
(365)
Projects
441
55%
Arbitration
22
50% / 14%
Overdue
30
7%
Loaded
48
Developer 48
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
49
Developer 49
Rating
(25)
Projects
31
13%
Arbitration
13
0% / 77%
Overdue
9
29%
Free
50
Developer 50
Rating
(25)
Projects
32
19%
Arbitration
5
40% / 40%
Overdue
4
13%
Free
51
Developer 51
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
52
Developer 52
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
53
Developer 53
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
54
Developer 54
Rating
(13)
Projects
24
75%
Arbitration
0
Overdue
2
8%
Free
Published: 62 codes
55
Developer 55
Rating
(317)
Projects
322
70%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
56
Developer 56
Rating
(162)
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
57
Developer 57
Rating
(548)
Projects
833
62%
Arbitration
33
27% / 45%
Overdue
24
3%
Free
Published: 1 code
58
Developer 58
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
59
Developer 59
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
60
Developer 60
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
61
Developer 61
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
*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.*
Hello Developers, I am looking for an experienced MQL5 developer to complete the development of a custom MetaTrader 5 Expert Advisor (EA) based on my proprietary trading strategy. I already have a partially developed EA that includes the required custom indicators and part of the trading logic. The project can either be completed by modifying the existing EA or, if more appropriate, by rebuilding it from scratch
QUIERO CONSEGUIR EL CODIGO FUENTE DE ESTE INDICADOR QUE ME GUSTA MUCHO TAMBIEN TIENE EL NOMBRE DE ET BANDS O ENTRY EXIT TIMING . no se los componentes pero estas son las imagenes. que mejor lo describen
Poptavka ZN 35 - 40 USD
Požadavky: platforma MetaTrader 5, jazyk MQL5; předání úplného a čitelného zdrojového kódu .mq5 a všech potřebných .mqh souborů; zákazů knihoven, DLL, vzdálených serverů a externí licenční kontroly; zákaz martingale, gridu, navyšování pozice po ztrátě a obchodování bez stop-lossu; výpočet velikosti pozice podle procenta rizika a skutečné měny účtu; nastavitelné maximální denní riziko a celkové čerpání; ochrana proti
I am looking to convert my existing TradingView Pine Script (v5) strategy into an MQL5 Expert Advisor (EA) for MetaTrader 5. Strategy Details: Asset: Gold (XAUUSD) Timeframe: 15-minute Strategy Logic: The strategy is based on a breakout concept. Anchor Candle: The base calculation starts from the Specified Candle Entry Window: The EA should only look for entries As Per Indicator Risk Management: The strategy
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
Only Technical Issues . Familiarization to Different Symbols . [Again Technical Assistance Only] . Deleting extra lines of code , Not Required Folders (Clean Code) . No Need for Logic Alteration (Strictly)
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

Project information

Budget
200 - 300 USD
Deadline
to 14 day(s)

Customer

Placed orders1
Arbitrage count0