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.
Benzer siparişler
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
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
Hello Developer, I trade ONLY synthetics, ONLY Boom and Crash. No Forex, No XAUUSD, No EURUSD. EA Name: KEITY ROYALTY MARKETS: Only Deriv Boom and Crash. Total 20 markets: Boom 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000 and Crash 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000. Scan all 20 from ONE chart. MAIN LOGIC: 1. After a spike, counter goes to 0. EA must count ticks from history. On start, look back last
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. ###
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
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
JOB SPECIFICATION: Fully Automated ES/MES 5-Minute NY Opening Range Breakout EA 1. Project objective I am looking for an experienced trading algo developer to build a fully automated trading bot (EA) based on my specific 5-minute New York Opening Range Breakout strategy. The EA must identify setups, confirm breakouts, identify retests, confirm continuation, execute trades, calculate position size, place stop-loss and
Title: Create a Combined Indicator from 3 EX4 Indicators + Fully Automatic Trading EA (MT4) Description: Hello, I need an experienced MQL4 developer to build a custom trading system based on 3 existing .ex4 indicators. Project Requirements: Combined Custom Indicator: Read and merge signals from 3 specified .ex4 indicators via buffer reading (iCustom). Generate a consolidated BUY or SELL arrow/signal
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to