Develop Gold (XAUUSD) MQL5 Trend-Following EA with Supply & Demand Strategy

Job finished

Execution time 10 days
Feedback from employee
He is a professional and a great person. It's a pleasure to work with him. Thanks a lot
Feedback from customer
Sergey is such a trustworthy person and always there to guide and assist every step in the project. i will recommend him anyday anytime

Specification

PROJECT: GOLD (XAUUSD) TREND-FOLLOWING SUPPLY & DEMAND EXPERT ADVISOR
PLATFORM: MetaTrader 5
PROGRAMMING LANGUAGE: MQL5
TRADING INSTRUMENT: XAUUSD / Gold Spot ONLY
OBJECTIVE:
Develop a fully automated XAUUSD trading Expert Advisor based on higher-timeframe market structure, supply and demand zones, H1 21/55 EMA trend confirmation, and M15 entry confirmation.
MARKET PHASE:
The EA must analyze H1, H4 and D1 market structure.
UPTREND:
Higher Highs (HH) and Higher Lows (HL).
DOWNTREND:
Lower Lows (LL) and Lower Highs (LH).
RANGE:
No clear HH/HL or LL/LH structure.
The EA must NOT open new trades when the market is classified as ranging or when the trend structure is unclear.
SUPPLY & DEMAND:
The EA must automatically identify valid supply and demand zones on H1, H4 and D1.
Zones must be treated as PRICE AREAS/RANGES, not single horizontal lines.
A valid zone should be based on:
- Clear historical reaction
- Meaningful displacement away from the area
- Previous respect/retest
- Clearly defined upper and lower boundaries
The developer must create objective programming rules for zone formation, strength, retests and invalidation and discuss these rules before implementation.
H1 EMA FILTER:
21 EMA and 55 EMA.
BUY:
H1 21 EMA must be above H1 55 EMA.
SELL:
H1 21 EMA must be below H1 55 EMA.
BUY ENTRY:
1. Higher-timeframe XAUUSD structure indicates an uptrend.
2. H1 21 EMA is above H1 55 EMA.
3. Price reaches a valid demand zone on H1, H4 or D1.
4. Wait for the first COMPLETED bullish M15 candle formed at or within the demand zone.
5. Enter BUY at the close of that M15 confirmation candle.
6. Do not enter while the M15 candle is still forming.
BUY STOP LOSS:
Default = 100 pips below the OPEN price of the first bullish M15 confirmation candle.
The demand-zone boundary must also be considered when determining the final stop-loss location.
BUY BREAKEVEN:
Move the stop-loss to the original entry price when the trade reaches +100 pips profit.
Once breakeven is reached, the stop-loss must never be moved backward.
BUY EXIT:
Close the BUY position when EITHER:
1. XAUUSD reaches/enters a valid supply zone
OR
2. H1 21 EMA crosses below the H1 55 EMA.
SELL ENTRY:
1. Higher-timeframe XAUUSD structure indicates a downtrend.
2. H1 21 EMA is below H1 55 EMA.
3. Price reaches a valid supply zone on H1, H4 or D1.
4. Wait for the first COMPLETED bearish M15 candle formed at or within the supply zone.
5. Enter SELL at the close of that M15 confirmation candle.
6. Do not enter while the M15 candle is still forming.
SELL STOP LOSS:
Default = 100 pips above the OPEN price of the first bearish M15 confirmation candle.
The supply-zone boundary must also be considered when determining the final stop-loss location.
SELL BREAKEVEN:
Move the stop-loss to the original entry price when the trade reaches +100 pips profit.
Once breakeven is reached, the stop-loss must never be moved backward.
SELL EXIT:
Close the SELL position when EITHER:
1. XAUUSD reaches/enters a valid demand zone
OR
2. H1 21 EMA crosses above the H1 55 EMA.
RISK MANAGEMENT:
Default risk per trade = 5% of account equity.
Risk percentage MUST be adjustable through EA settings.
The EA must automatically calculate lot size based on:
- Account equity
- Risk percentage
- Stop-loss distance
- XAUUSD tick value
- XAUUSD tick size
- Contract size where applicable
- Broker minimum volume
- Broker maximum volume
- Broker volume step
The EA must NOT use a fixed lot size.
XAUUSD CALCULATIONS:
The EA must use the actual XAUUSD symbol specifications supplied by the broker.
Do NOT use hard-coded Forex assumptions for pip size, tick size, tick value, contract size or volume.
The 100-pip stop-loss and 100-pip breakeven distances must be correctly converted according to the broker's XAUUSD specifications.
TRADE PROTECTION:
- XAUUSD ONLY.
- No duplicate entries from the same signal.
- No multiple entries from the same M15 confirmation candle.
- No entry from an invalid supply/demand zone.
- No new trades during ranging conditions.
- No entry without the required EMA/trend confirmation.
- Respect broker minimum/maximum/step volume.
- Never move stop-loss backward after breakeven.
- Use a unique Magic Number.
- Handle spread, execution errors and trading-session restrictions safely.
EA INPUTS:
RiskPercent = 5.0
FastEMA = 21
SlowEMA = 55
ConfirmationTimeframe = M15
BuyStopLossPips = 100
SellStopLossPips = 100
BuyBreakevenPips = 100
SellBreakevenPips = 100
UseSupplyDemandExit = true
UseEMAExit = true
AllowBuyTrades = true
AllowSellTrades = true
XAUUSDOnly = true
MagicNumber = adjustable
VISUAL FEATURES:
The EA should optionally display:
- Supply zones
- Demand zones
- 21 EMA
- 55 EMA
- Buy/sell entries
- Stop-loss
- Breakeven status
- Current market phase
- Zone timeframe/source
BACKTESTING:
The EA must be tested specifically on XAUUSD using the MT5 Strategy Tester.
Testing must include:
- Trending markets
- Ranging markets
- Reversals
- High-volatility Gold periods
- Supply/demand detection
- M15 confirmation
- Position sizing
- 100-pip stop-loss
- 100-pip breakeven
- Supply/demand exits
- EMA exits
- Duplicate-entry prevention
Provide backtest results including:
- Net profit
- Profit factor
- Maximum drawdown
- Win rate
- Number of trades
DEVELOPMENT REQUIREMENT:
Subjective concepts such as "valid zone", "bounce", "strong reaction", "higher high", "higher low", "lower high", "lower low", "displacement" and "zone break" must be converted into objective, measurable programming rules.
The developer MUST explain the proposed supply/demand detection algorithm and obtain approval before implementing it.
The developer must NOT replace this strategy with a generic EMA crossover or generic supply/demand strategy.
DELIVERABLES:
1. Fully functional .mq5 source code.
2. Compiled .ex5 file.
3. No compilation errors or warnings.
4. XAUUSD Strategy Tester verification.
5. Explanation of the supply/demand detection algorithm.
6. Explanation of all EA inputs.
7. Backtest report.
8. Installation/use instructions.
9. Confirmation that the EA is restricted to XAUUSD.

IMPORTANT:
The attached Gold/XAUUSD TradingView chart is a visual reference for how I identify supply and demand areas. The orange areas represent ZONES/RANGES, not single price levels. The developer must use the chart as a reference for the methodology and must NOT hard-code the displayed price levels.

Responded

1
Developer 1
Rating
(640)
Projects
748
34%
Arbitration
49
53% / 39%
Overdue
14
2%
Working
2
Developer 2
Rating
(111)
Projects
184
25%
Arbitration
25
16% / 76%
Overdue
16
9%
Free
3
Developer 3
Rating
(2)
Projects
4
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(438)
Projects
650
53%
Arbitration
35
63% / 20%
Overdue
7
1%
Working
5
Developer 5
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
6
Developer 6
Rating
(406)
Projects
524
24%
Arbitration
62
58% / 24%
Overdue
60
11%
Busy
7
Developer 7
Rating
(319)
Projects
574
35%
Arbitration
83
31% / 45%
Overdue
207
36%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(10)
Projects
12
33%
Arbitration
0
Overdue
2
17%
Working
Published: 1 code
11
Developer 11
Rating
(4)
Projects
10
60%
Arbitration
1
0% / 0%
Overdue
0
Working
12
Developer 12
Rating
(854)
Projects
1472
72%
Arbitration
122
29% / 48%
Overdue
361
25%
Free
Published: 3 articles
13
Developer 13
Rating
(216)
Projects
283
20%
Arbitration
28
57% / 14%
Overdue
0
Working
Similar orders
I am an experienced MQL5/MT5 software developer offering professional custom trading software development services. My target customers include professional traders, EA developers, quantitative researchers, prop firms, signal providers, money managers and trading businesses. I am looking for higher-budget software development projects, ideally worth $500–$3,000+ depending on scope, complexity and requirements. Below
I am looking for a quantitative strategy researcher and MQL5 developer to help research, validate and prototype a fast automated XAUUSD trading system for MT5. The target is tick-level trading with positions typically held for seconds, closely spaced entries, and configurable bursts of multiple positions during a qualifying opportunity. IMPORTANT: We do not yet have a validated profitable strategy. I need someone who
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
I'm looking for a developer to build a simple cloud-based monitoring and alert system for a trading account whose performance statistics are displayed on a third-party website. The system should: 1. Monitor the account's balance, equity and open positions. 2. Calculate the current floating drawdown as a percentage of account balance. 3. Send a single alert, preferably via WhatsApp or alternatively email, when
CyberShadow AI 30 - 300 USD
I want a bot that’s trades using smc strategy having stop loss and take profit.I want it to be able to trade with small account I want a disciplined robot but a strong one to I also what it to trade using trend line and locate point of interest
PROJECT: EXISTING MT5 EA MODIFICATION – XAUUSD SLIPPAGE REDUCTION 1. Project Objective I already have a fully developed MT5 Expert Advisor (.mq5 source code). I am looking for an experienced MQL5 developer who can optimize my existing EA to achieve the lowest possible execution slippage on a REAL LIVE trading account. My primary and only objective is to zero slippage. I am not looking for a new trading strategy or
1. Project Overview I am seeking an experienced MQL4 programmer to develop a fully automated, adaptive, and profitable Expert Advisor (EA) specifically designed for trading Gold (XAUUSD) on the MetaTrader 4 (MT4) trading platform. The objective is to develop a high-frequency scalping EA capable of identifying and executing high-probability trading opportunities across changing market conditions, including trending

Project information

Budget
30 - 50 USD