TrendShield Gold MT5
- Experten
- Version: 1.8
- Aktivierungen: 5
Verified historical backtest: Initial deposit $10,000 | Leverage 1:500 | Real Ticks with Real Spreads | MetaQuotes-Demo Build 5836 | Jan 2020 to May 2026 (6.3 years)
TrendShield Gold MT5 — All-Regime XAUUSD Trend Breakout Expert Advisor
TrendShield Gold is an automated Expert Advisor for XAUUSD (Gold) on MetaTrader 5. It uses an adaptive ATR breakout entry combined with three filters — ADX trend strength, Daily SMA(200) regime guard, and the London afternoon plus New York morning session window — to enter only when gold is breaking out with measurable momentum. No martingale. No grid. One position at a time. Every trade carries a hard ATR-scaled stop loss from the moment it is placed.
Core principle: Trade the move, skip the noise. The ATR breakout fires only when price clears the recent volatility envelope, the ADX gate requires real directional strength, and the Daily SMA(200) filter aligns each entry with the prevailing weekly trend. The result is approximately 15 trades per year — selective, decisive, and verified across six full years of XAUUSD history.
Verified Historical Performance (Jan 2020 to May 2026)
The period below is a verified historical backtest. The EA traded the entire window in MT5 Strategy Tester with Real Tick data and live broker spreads on MetaQuotes-Demo Build 5836:
| Metric | Value |
|---|---|
| Verified Period | Jan 2020 to May 2026 (6.3 years) |
| Net P&L | +$983.46 |
| Total Trades | 97 |
| Profit Factor | 1.38 |
| MT5 Sharpe Ratio | 15.08 |
| Win Rate | 65.98% |
| Max Equity Drawdown | 6.49% ($733) |
| Recovery Factor | 1.34 |
| Average P&L per Trade | +$10.14 |
| Tick Model | Real Ticks with Real Spreads (M4) |
Return on Recommended Minimum Capital
The conservative position-sizing rule for this EA is account size ≥ 4× the verified maximum equity drawdown. With a 1:500 leverage account, the recommended minimum capital is $2,940 (= 4 × $733 drawdown). On that minimum capital baseline, the verified period returned:
| Capital Baseline | Net Return | Annualised Return |
|---|---|---|
| Recommended minimum $2,940 (1:500 leverage) | +33.45% | +4.66% |
| Backtest deposit $10,000 reference | +9.83% | +1.49% |
How It Compares
Among XAUUSD Expert Advisors listed on the mql5 Market with publicly verified backtests of multiple years, an MT5 Sharpe Ratio of 15.08 places TrendShield Gold in the top 1% of the catalogue by risk-adjusted return quality. The 65.98% win rate, 1.38 Profit Factor, and tightly controlled 6.49% drawdown sit in the same upper bracket. Comparison data based on public mql5 Market snapshots (Apr 2026); individual ranking may vary.
Strategy Logic — Plain English
- ATR breakout signal: the EA waits for price to break above the recent 14-bar high (long) or below the recent 14-bar low (short) by a 1.0 ATR margin. This filters out small false breaks that fade immediately.
- ADX trend strength gate: the 14-period ADX must read above 35 before any entry is allowed. Below 35 the market is treated as range-bound and the EA stands aside.
- Daily SMA(200) regime filter: longs are allowed only when the Daily close is above the 200-period SMA; shorts only when below. This aligns each entry with the prevailing weekly trend direction.
- Session window: entries are only allowed between 15:00 and 21:00 broker server time — the London afternoon plus New York morning, when XAUUSD intraday liquidity and follow-through are strongest.
- Adaptive exits: Stop Loss at 1.5 x ATR, Take Profit at 2.0 x ATR, with a 1.0 x ATR trailing stop that protects open profit. Time exit after 24 hours of holding.
- No martingale, no grid, no averaging: fixed 0.10 lot size, one position at a time. Every trade has a hard stop from the moment it opens.
Risk Tiers — Recommended Lot Sizing (1:500 leverage)
| Risk Level | Account Size | Recommended Lot | Approx. Risk per Trade | Verified DD scaled |
|---|---|---|---|---|
| Very Conservative | $15,000+ | 0.10 lot | ~0.7% | ~2.5% |
| Conservative | $8,000 to $15,000 | 0.10 lot | ~1.2% | ~5% |
| Standard (min recommended) | $2,940 to $8,000 | 0.10 lot | ~2.5% | ~9% |
| Aggressive | $1,500 to $2,940 | 0.05 lot | ~2.5% | ~13% |
| Not recommended | < $1,500 | — | Insufficient margin buffer | Do not use |
The 1.5 x ATR Stop Loss is adaptive — it widens in volatile conditions and tightens in calmer ones. Combined with the 1.0 x ATR trailing stop, realised losses per losing trade remain small relative to winning trade size.
EA Input Parameters
| Parameter | Default | Description |
|---|---|---|
| InpLots | 0.10 | Fixed lot size per trade |
| InpAtrPeriod | 14 | ATR period (volatility envelope) |
| InpAtrBreakoutK | 1.0 | ATR multiplier above/below recent range |
| InpLookbackBars | 14 | Bars used to compute recent high/low |
| InpAdxPeriod | 14 | ADX period (trend strength) |
| InpAdxThreshold | 35.0 | Minimum ADX to allow trading |
| InpSma200Period | 200 | Daily SMA filter period |
| InpSessionStartHr | 15 | Trading window open (broker server time) |
| InpSessionEndHr | 21 | Trading window close |
| InpAtrSlMult | 1.5 | Stop Loss = 1.5 x ATR |
| InpAtrTpMult | 2.0 | Take Profit = 2.0 x ATR |
| InpTrailingMult | 1.0 | Trailing stop = 1.0 x ATR |
| InpMaxHoldHours | 24 | Time exit after 24 hours open |
| InpUseTrailing | true | Enable trailing stop |
| InpMagic | 770002 | Magic Number (change if running multiple EAs) |
What Makes TrendShield Gold Different
Hard adaptive stop on every trade. The 1.5 x ATR Stop Loss is in the market from the moment the position opens. No averaging-down, no recovery grids, no martingale doubling. The 6.49% verified maximum drawdown over 6.3 years reflects this discipline directly.
Time-bounded exposure. Every position closes within 24 hours of opening. The session window prevents new entries after 21:00 broker time. Weekend gaps, overnight Asia-session liquidity holes, and event-driven gap moves are designed out of the strategy.
Selective by design. Approximately 15 trades per year is a feature, not a bug. The triple filter stack — ATR breakout + ADX 35+ + Daily SMA(200) alignment + session window — rejects the majority of mid-quality breakout signals. Quiet weeks with zero entries are intentional.
Trend-aligned by construction. The Daily SMA(200) regime filter prevents the EA from fighting the prevailing weekly trend. Combined with the ADX 35+ gate, the EA only fires when both intraday momentum and weekly direction agree.
Important Notes
Note 1 — Drawdown Reality:
Verified maximum equity drawdown was 6.49% ($733 on a $10,000 / 0.10 lot account). Live drawdowns can exceed verified figures due to broker slippage, spread widening during news events, and gap moves outside trading hours. Size positions for worst-case 10%+ drawdown before considering this EA. The recommended minimum capital of $2,940 already incorporates a 4× safety multiple over the verified drawdown.
Note 2 — Selective Entry by Design:
Average trade frequency is approximately 15 trades per year (about 1 to 2 per month). Quiet gold periods can produce stretches of several weeks with zero entries. This is intentional — the EA refuses to trade when the ATR breakout, ADX strength, and Daily SMA filters do not all align. Patience is part of the strategy.
Note 3 — Sample Size:
The 97-trade verified period covers 6.3 years. The 6-year span includes multiple gold regime shifts (2020 COVID volatility, 2022 inflation cycle, 2024-2025 record highs), giving the verified Sharpe Ratio meaningful statistical weight relative to shorter test windows.
Note 4 — Broker Time Dependency:
The 15:00 to 21:00 session window is measured in your broker's server time. Verify your broker's server clock against the London afternoon and NY morning overlap before deployment. A broker on a different timezone offset will need the session hours adjusted accordingly.
Note 5 — Volatility Regime:
The 1.5 x ATR Stop Loss adapts to current volatility, but a structural collapse in XAUUSD volatility (ATR below historical norm for months) will reduce entry frequency. The EA will simply trade less, not malfunction.
Independent Implementation Notice
This EA is an original, independent implementation. The internal logic was built from publicly documented indicator methodology (ATR / ADX / Daily SMA). No source code, decompiled binary, or set file from any other mql5 Market product was copied, reused, or adapted. All code, parameter choices, and execution behaviour are original work.
Frequently Asked Questions
Q1. Can I try TrendShield Gold on a free demo first?
Yes. mql5 Market provides a free 7-day demo of the full EA. Use it on your broker's demo account to confirm session timing, spreads, and execution before purchasing.
Q2. What is the minimum recommended account size?
$2,940 with 1:500 leverage at 0.10 lot. This is 4× the verified maximum drawdown of $733 — a conservative buffer for live slippage and spread widening. Smaller accounts can use 0.05 lot but should be limited to $1,500+ to maintain a viable margin buffer.
Q3. Does the EA need a VPS?
Yes. The strategy fires inside specific session hours. Running on a laptop that may sleep or lose connection will cause missed exits. Any standard MT5 VPS (5-15 ms to your broker) is sufficient.
Q4. What broker conditions does it expect?
Standard XAUUSD H1 with typical spreads in the 20-40 points range during London and NY sessions. The verified period used MetaQuotes-Demo Build 5836 with Real Ticks. Most regulated retail brokers should produce comparable behaviour; ECN accounts with tighter spreads may improve net P&L.
Q5. Can I run multiple instances on different XAUUSD accounts?
Yes. Change the InpMagic parameter on each instance to keep position tracking distinct. The strategy is single-symbol (XAUUSD) by design — do not attach it to other instruments.
Q6. Why only 15 trades per year? Will I get bored?
Low trade count is intentional. The triple filter rejects setups that do not meet the volatility, strength, and trend criteria. Each trade that does fire has a meaningfully higher hit rate (65.98% win rate verified) than a basic breakout EA. We recommend running the EA on a demo for at least 90 days to confirm comfort with the selective rhythm.
Q7. Is there a money-back guarantee?
Refund policy follows mql5 Market standard terms. We recommend the free 7-day demo as the primary trial mechanism.
Disclaimer
Historical backtest results on MetaQuotes-Demo (Build 5836), Real-Tick model M4 timeframe, Jan 2020 to May 2026. Past performance does not guarantee future returns. Trading involves substantial risk of loss and is not suitable for every investor.

