EA Development Request: XAUUSD Heiken Ashi + EMA 50 Scalper (MT5)

Spécifications

1. Overview
Build an MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD (Gold) as a scalper, using Heiken Ashi candles and a 50 EMA for entries.

2. Platform and symbol

  • MetaTrader 5, Expert Advisor (.mq5 and compiled .ex5)
  • Symbol: XAUUSD (must work with broker suffixes, e.g. XAUUSDm)
  • Default timeframe: M5 (configurable; M1 to M15 should work)

3. Indicators

  • Heiken Ashi candles, calculated inside the EA (no external indicator needed)
  • EMA, period 50, applied to Close (period and price type as inputs)

4. Entry logic (evaluated only on a newly closed candle, no repainting)

  • BUY: the last 3 closed Heiken Ashi candles all close above EMA 50. Optional filter: all 3 are bullish (HA close > HA open).
  • SELL: the last 3 closed Heiken Ashi candles all close below EMA 50. Optional filter: all 3 are bearish.
  • Number of confirmation candles is an input (default 3).
  • One trade at a time (input: max open trades, default 1).
  • No new trade while one is open in the same direction.

5. Exit logic

  • Stop Loss: fixed in points, or ATR-based (input, selectable)
  • Take Profit: fixed in points or risk:reward ratio (default 1:1.5)
  • Optional: close the trade when a Heiken Ashi candle closes on the opposite side of EMA 50
  • Optional: break-even and trailing stop (inputs: trigger points, step points)

6. Risk management

  • Lot size: fixed lot, or % of balance risked per trade (input)
  • Max spread filter (gold spreads widen; skip entries above the limit)
  • Max daily loss % and max daily trades, after which the EA stops for the day
  • Slippage setting (max deviation in points)

7. Trading filters

  • Trading session filter (start and end time, server time), so it can avoid rollover and news hours
  • Optional: skip trading on Fridays after a set time
  • Optional: minimum distance between candle close and EMA to avoid flat, choppy markets

8. Inputs panel (all adjustable)
Timeframe, EMA period, confirmation candles, lot mode and size, SL, TP, trailing, break-even, max spread, session times, daily limits, magic number, trade comment.

9. Technical requirements

  • Use CTrade, handle requotes and errors with retries
  • Handle 5-digit and 3-digit pricing and different broker contract sizes correctly
  • Trades tagged with a magic number so the EA only manages its own orders
  • Log entries, exits and errors in the Experts tab
  • Clean, commented code

10. Deliverables

  • Source code (.mq5) and compiled file (.ex5)
  • Strategy Tester backtest on XAUUSD, 1 year minimum, using "Every tick based on real ticks"
  • Short user guide for installing and setting inputs

11. Testing and acceptance

  • Backtest results match the entry and exit rules above
  • Forward test on a demo account for at least 2 weeks before going live
  • No repainting; signals fire only on closed candles

Répondu

1
Développeur 1
Évaluation
(438)
Projets
652
53%
Arbitrage
35
63% / 20%
En retard
7
1%
Travail
2
Développeur 2
Évaluation
(3)
Projets
3
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
3
Développeur 3
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 7 codes
4
Développeur 4
Évaluation
(1)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 21 codes
5
Développeur 5
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
1
50%
Gratuit
6
Développeur 6
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 5 codes
8
Développeur 8
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
9
Développeur 9
Évaluation
(78)
Projets
248
74%
Arbitrage
7
100% / 0%
En retard
1
0%
Gratuit
Publié : 2 articles, 1 code
10
Développeur 10
Évaluation
(4)
Projets
11
55%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
11
Développeur 11
Évaluation
(1)
Projets
1
0%
Arbitrage
3
0% / 100%
En retard
1
100%
Gratuit
12
Développeur 12
Évaluation
(11)
Projets
10
60%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
13
Développeur 13
Évaluation
(5)
Projets
5
60%
Arbitrage
1
0% / 0%
En retard
2
40%
Gratuit
Publié : 1 code
14
Développeur 14
Évaluation
(170)
Projets
203
47%
Arbitrage
5
20% / 60%
En retard
3
1%
Gratuit
15
Développeur 15
Évaluation
(5)
Projets
7
86%
Arbitrage
0
En retard
0
Gratuit
Publié : 4 codes
16
Développeur 16
Évaluation
(319)
Projets
574
35%
Arbitrage
84
31% / 44%
En retard
207
36%
Travail
17
Développeur 17
Évaluation
(373)
Projets
465
56%
Arbitrage
24
58% / 17%
En retard
32
7%
Travail
18
Développeur 18
Évaluation
(6)
Projets
8
38%
Arbitrage
2
50% / 50%
En retard
2
25%
Gratuit
19
Développeur 19
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
20
Développeur 20
Évaluation
(854)
Projets
1472
72%
Arbitrage
122
29% / 48%
En retard
361
25%
Gratuit
Publié : 3 articles
21
Développeur 21
Évaluation
(268)
Projets
319
74%
Arbitrage
16
75% / 0%
En retard
6
2%
Chargé
22
Développeur 22
Évaluation
(13)
Projets
14
64%
Arbitrage
0
En retard
0
Gratuit
23
Développeur 23
Évaluation
(25)
Projets
31
13%
Arbitrage
14
0% / 79%
En retard
9
29%
Gratuit
24
Développeur 24
Évaluation
(45)
Projets
63
52%
Arbitrage
5
0% / 40%
En retard
1
2%
Gratuit
25
Développeur 25
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 6 codes
26
Développeur 26
Évaluation
(2)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
27
Développeur 27
Évaluation
(568)
Projets
866
61%
Arbitrage
33
27% / 45%
En retard
24
3%
Travail
Publié : 1 code
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
(14)
Projets
23
35%
Arbitrage
0
En retard
2
9%
Travail
30
Développeur 30
Évaluation
(6)
Projets
14
71%
Arbitrage
1
0% / 0%
En retard
6
43%
Chargé
Publié : 6 codes
31
Développeur 31
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
32
Développeur 32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
33
Développeur 33
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
34
Développeur 34
Évaluation
(3)
Projets
3
0%
Arbitrage
0
En retard
0
Gratuit
35
Développeur 35
Évaluation
(51)
Projets
71
37%
Arbitrage
4
25% / 75%
En retard
1
1%
Travail
Publié : 1 code
36
Développeur 36
Évaluation
(453)
Projets
566
26%
Arbitrage
24
42% / 38%
En retard
85
15%
Gratuit
Publié : 6 codes
37
Développeur 37
Évaluation
(16)
Projets
30
40%
Arbitrage
3
33% / 67%
En retard
7
23%
Travail
38
Développeur 38
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 codes
39
Développeur 39
Évaluation
(3)
Projets
2
0%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
40
Développeur 40
Évaluation
(2)
Projets
7
0%
Arbitrage
3
0% / 33%
En retard
1
14%
Travail
41
Développeur 41
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
42
Développeur 42
Évaluation
(206)
Projets
333
35%
Arbitrage
66
12% / 58%
En retard
87
26%
Gratuit
43
Développeur 43
Évaluation
(2)
Projets
4
25%
Arbitrage
1
100% / 0%
En retard
1
25%
Gratuit
Publié : 3 codes
44
Développeur 44
Évaluation
(89)
Projets
254
78%
Arbitrage
9
22% / 56%
En retard
36
14%
Travail
Publié : 3 articles, 26 codes
45
Développeur 45
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
46
Développeur 46
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
47
Développeur 47
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
48
Développeur 48
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
49
Développeur 49
Évaluation
(515)
Projets
554
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
50
Développeur 50
Évaluation
(183)
Projets
278
64%
Arbitrage
4
50% / 25%
En retard
10
4%
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
(408)
Projets
527
24%
Arbitrage
62
58% / 24%
En retard
60
11%
Travail
54
Développeur 54
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
55
Développeur 55
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
56
Développeur 56
Évaluation
(4)
Projets
8
0%
Arbitrage
3
33% / 67%
En retard
4
50%
Gratuit
57
Développeur 57
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
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
(7)
Projets
7
71%
Arbitrage
0
En retard
0
Gratuit
61
Développeur 61
Évaluation
(64)
Projets
145
46%
Arbitrage
21
38% / 24%
En retard
32
22%
Gratuit
62
Développeur 62
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
63
Développeur 63
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
64
Développeur 64
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 5 codes
65
Développeur 65
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
66
Développeur 66
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
67
Développeur 67
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
68
Développeur 68
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
69
Développeur 69
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 codes
70
Développeur 70
Évaluation
Projets
0
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
(81)
Projets
113
57%
Arbitrage
6
83% / 17%
En retard
5
4%
Travail
75
Développeur 75
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
76
Développeur 76
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
77
Développeur 77
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
78
Développeur 78
Évaluation
(2)
Projets
3
33%
Arbitrage
0
En retard
2
67%
Travail
79
Développeur 79
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
80
Développeur 80
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 article, 1 code
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
Publié : 1 code
83
Développeur 83
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
84
Développeur 84
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
85
Développeur 85
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
86
Développeur 86
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
Lilyearfx 30+ USD
Hello Developer, I want an Expert Advisor (EA) for MT5 for BTCUSD. PLATFORM: - MetaTrader 5 (MT5) - Symbol: BTCUSD - Timeframe: M1 and M5 - Broker: Exness STRATEGY - SIMPLE PULLBACK: 1. The EA must wait for a big fast move UP or DOWN, like after NFP news at 15:30 South Africa time. 2. After a big UP move (example: price jumps +500 points in 5 minutes), DO NOT buy at the top. 3. Wait for price to come back down
Sniper Bot* not just a random EA. It is a sniper. *How It Works:* *Strategy:* Pure Liquidity Zones - It waits patiently for price to sweep liquidity, then snipes it. No gambling, no martingale, no grid. - *Discipline:* It does NOT trade every day. No setup = No trade. Quality over quantity. *Risk Control:* Fixed Stop Loss of *30 Pips per entry*. Your risk is always defined before the trade. *Speed:* It does NOT hold
MyFirstEA 30+ USD
//+------------------------------------------------------------------+ //| MyFirstEA.mq5 | //+------------------------------------------------------------------+ #property copyright "Me" #property version "1.00" #property strict #include <Trade\Trade.mqh> //--- Inputs input double InpLots = 0.10; // Lot size input int InpFastMA = 10; // Fast MA period input int InpSlowMA = 30;
Hello, looking for a profitable long term bot to use on real live capital. No martingale allowed. Willing to also give % base ofnprofits for performing fees. Backtest is a must with real ticks
I NEED A PROFITABLE FOREX /FUTURES TRADING ROBOT. A VERY SIMPLE PROFITABLE TRADING ROBOT WITH 3 TECHNICAL CHECKS [AN MQL5 FOREX/FUTURES BOT] . THAT I CAN BOTH USED ON MY PRIVATE LIVE ACCOUNT AND PROP FIRM CHALLENGE ACCOUNT. THE STRATEGIES / LOGIC AND THE ALGORITHM CAN BE ANY PRICE ACTION BOT, IT CAN ANY PRICE ACTION COMBINED WITH ANY INDICATOR TO FILTER THE TREND OR TO GIVE ME THE TREND. THESE ARE MUST HALF
Seeking an Established and Profitable Gold Scalping System – MT5 I am a serious buyer looking to acquire an existing, fully operational Expert Advisor specifically designed for scalping XAUUSD (Gold) on MetaTrader 5. I am particularly interested in experienced developers and quantitative traders who have developed successful proprietary trading systems, including systems that are not publicly available on the MQL5
I am looking for the original developer from Egypt who sent me the MJ v3.01 Gold EA (mj.ex5) on December 2, 2026, with a 10-day demo trial. You were Developer #28 in my previous Freelance job and offered the EA for $200. Unfortunately, I lost access to our previous conversation and would like to reconnect with you. I am still interested in your EA and would like to complete the testing, discuss the settings, and
EA 30+ USD
Build an MT5 Expert Advisor using MQL5. I want an automated trading bot for Exness MT5. Markets: XAUUSD (Gold) BTCUSD (Bitcoin), subject to the broker's actual symbol name. Trading strategy: H1 timeframe for trend direction. M15 timeframe for trade entries. EMA 20 and EMA 50 for trend identification. Only buy when the confirmed trend is bullish. Only sell when the confirmed trend is bearish. Use candle-close
Gulu 30+ USD
create money on forex ensuring nothing but profit basically also crypto an d ensure you use every means possible to ensure in turn a profit is made that what i want i want perfection
If you already have a working gold order-flow EA that matches the logic described here, I'm open to buying or licensing it instead of a custom build. Please provide: A demo version that I can run in the MT5 Strategy Tester (for example, a time-limited or demo-account-only build) A clear explanation of the trading logic: what triggers an entry, how the stop loss and take profit are set, and which order-flow or

Informations sur le projet

Budget
150+ USD
Délais
de 1 jour(s)