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

Specification

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

Responded

1
Developer 1
Rating
(438)
Projects
652
53%
Arbitration
35
63% / 20%
Overdue
7
1%
Working
2
Developer 2
Rating
(3)
Projects
3
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 7 codes
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
0
Overdue
0
Free
Published: 21 codes
5
Developer 5
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
1
50%
Free
6
Developer 6
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 5 codes
8
Developer 8
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 4 codes
9
Developer 9
Rating
(78)
Projects
248
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 2 articles, 1 code
10
Developer 10
Rating
(4)
Projects
11
55%
Arbitration
1
100% / 0%
Overdue
0
Free
11
Developer 11
Rating
(1)
Projects
1
0%
Arbitration
3
0% / 100%
Overdue
1
100%
Free
12
Developer 12
Rating
(11)
Projects
10
60%
Arbitration
1
0% / 0%
Overdue
0
Free
13
Developer 13
Rating
(5)
Projects
5
60%
Arbitration
1
0% / 0%
Overdue
2
40%
Free
Published: 1 code
14
Developer 14
Rating
(170)
Projects
203
47%
Arbitration
5
20% / 60%
Overdue
3
1%
Free
15
Developer 15
Rating
(5)
Projects
7
86%
Arbitration
0
Overdue
0
Free
Published: 4 codes
16
Developer 16
Rating
(319)
Projects
574
35%
Arbitration
84
31% / 44%
Overdue
207
36%
Working
17
Developer 17
Rating
(373)
Projects
465
56%
Arbitration
24
58% / 17%
Overdue
32
7%
Working
18
Developer 18
Rating
(6)
Projects
8
38%
Arbitration
2
50% / 50%
Overdue
2
25%
Free
19
Developer 19
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(854)
Projects
1472
72%
Arbitration
122
29% / 48%
Overdue
361
25%
Free
Published: 3 articles
21
Developer 21
Rating
(268)
Projects
319
74%
Arbitration
16
75% / 0%
Overdue
6
2%
Loaded
22
Developer 22
Rating
(13)
Projects
14
64%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(25)
Projects
31
13%
Arbitration
14
0% / 79%
Overdue
9
29%
Free
24
Developer 24
Rating
(45)
Projects
63
52%
Arbitration
5
0% / 40%
Overdue
1
2%
Free
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 6 codes
26
Developer 26
Rating
(2)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
27
Developer 27
Rating
(568)
Projects
866
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Working
Published: 1 code
28
Developer 28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
(14)
Projects
23
35%
Arbitration
0
Overdue
2
9%
Working
30
Developer 30
Rating
(6)
Projects
14
71%
Arbitration
1
0% / 0%
Overdue
6
43%
Loaded
Published: 6 codes
31
Developer 31
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
32
Developer 32
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Free
35
Developer 35
Rating
(51)
Projects
71
37%
Arbitration
4
25% / 75%
Overdue
1
1%
Working
Published: 1 code
36
Developer 36
Rating
(453)
Projects
566
26%
Arbitration
24
42% / 38%
Overdue
85
15%
Free
Published: 6 codes
37
Developer 37
Rating
(16)
Projects
30
40%
Arbitration
3
33% / 67%
Overdue
7
23%
Working
38
Developer 38
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
39
Developer 39
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
40
Developer 40
Rating
(2)
Projects
7
0%
Arbitration
3
0% / 33%
Overdue
1
14%
Working
41
Developer 41
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
42
Developer 42
Rating
(206)
Projects
333
35%
Arbitration
66
12% / 58%
Overdue
87
26%
Free
43
Developer 43
Rating
(2)
Projects
4
25%
Arbitration
1
100% / 0%
Overdue
1
25%
Free
Published: 3 codes
44
Developer 44
Rating
(89)
Projects
254
78%
Arbitration
9
22% / 56%
Overdue
36
14%
Working
Published: 3 articles, 26 codes
45
Developer 45
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
46
Developer 46
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
47
Developer 47
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
48
Developer 48
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
49
Developer 49
Rating
(515)
Projects
554
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
50
Developer 50
Rating
(183)
Projects
278
64%
Arbitration
4
50% / 25%
Overdue
10
4%
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
(408)
Projects
527
24%
Arbitration
62
58% / 24%
Overdue
60
11%
Working
54
Developer 54
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
55
Developer 55
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
56
Developer 56
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
57
Developer 57
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
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
(7)
Projects
7
71%
Arbitration
0
Overdue
0
Free
61
Developer 61
Rating
(64)
Projects
145
46%
Arbitration
21
38% / 24%
Overdue
32
22%
Free
62
Developer 62
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
63
Developer 63
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
64
Developer 64
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 5 codes
65
Developer 65
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
66
Developer 66
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
67
Developer 67
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
68
Developer 68
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
69
Developer 69
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
70
Developer 70
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
71
Developer 71
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
72
Developer 72
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
73
Developer 73
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
74
Developer 74
Rating
(81)
Projects
113
57%
Arbitration
6
83% / 17%
Overdue
5
4%
Working
75
Developer 75
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
76
Developer 76
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
77
Developer 77
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
78
Developer 78
Rating
(2)
Projects
3
33%
Arbitration
0
Overdue
2
67%
Working
79
Developer 79
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
80
Developer 80
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 article, 1 code
81
Developer 81
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
82
Developer 82
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
83
Developer 83
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
84
Developer 84
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
85
Developer 85
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
86
Developer 86
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello i need a mobile EA that will scalp trades that can be in and out within under 1 minute and take consitenly profitable scalps on smaller time frames. i would like to use this to pass funded challenges and to also be used for long term growth
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
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

Project information

Budget
150+ USD
Deadline
from 1 day(s)