Quant Valencia Gold EA — User Guide (XAUUSD MT5, v1.13)

Quant Valencia Gold EA — User Guide (XAUUSD MT5, v1.13)

29 April 2026, 18:12
Muharrem Rogova
0
39
Quant Valencia Gold EA — User Guide (v1.13)

Published by AlgoSphere Quant · April 2026

Welcome to the official user guide for Quant Valencia Gold, a multi-strategy Expert Advisor built exclusively for XAUUSD on MetaTrader 5. This document covers everything you need to deploy the EA confidently: what each of the five strategies does, how the risk stack protects your account, how to read the on-chart cockpit, and the recommended settings for different account sizes and trading goals.

📥 Get Quant Valencia Gold on the MQL5 Market →

Brand-new release · Early-adopter launch price · Lifetime license · Free updates

01_hero_product.png


1. What Quant Valencia Gold Is

Quant Valencia Gold is a dedicated XAUUSD Expert Advisor that runs five independent strategies in parallel, each targeting a different gold market regime. There is no martingale, no grid, no hedging, and no recovery averaging. Every position carries a hard stop loss, sized from real-time ATR volatility, and the EA enforces hard daily loss limits and max drawdown caps regardless of strategy state.

The EA is built on the AlgoSphere Quant framework — the same modular library architecture behind our open-source ASQ contributions on the MQL5 Code Base. Total codebase: ~45 000 lines across 30 modular files. Five of those modules implement the strategies; the remaining 25 handle execution, risk, news, prop firm rules, dashboard rendering, and analytics.

Built for:

  • Retail traders who want a multi-strategy XAUUSD system without managing multiple EAs
  • Prop firm challenge takers (FTMO, MFF, FundedNext, TFT, E8 presets included)
  • Systematic traders who prefer institutional-style risk management over recovery tricks

Not for:

  • Traders looking for a "set it and forget it" black box — Quant Valencia Gold gives you full visibility and full control
  • Traders who want to martingale or grid into losses — this EA is structurally incompatible with that approach

2. Quick Start

Setting Value
Symbol XAUUSD (Gold) — symbol validation enforced
Default attached timeframe M15
Minimum deposit $1 000
Recommended deposit $5 000+
Account leverage 1:30 to 1:500 (1:100 typical)
Broker type ECN / Raw spread strongly recommended
Max spread (default) 5 pips
VPS Required for 24/5 operation

Drop the EA onto an XAUUSD M15 chart, allow algorithmic trading, and the cockpit will appear at the top of the chart. The five strategies are enabled by default. The EA will run signal evaluation continuously and only fire trades when the configured filters align.

02_strategies.png


3. The Five Strategies

Each strategy operates independently, generates its own signals, and uses its own SL/TP logic. They share the same risk envelope (max positions, daily loss limit, news filter) but never combine into compound positions.

Strategy 1 — Asian Range Breakout ( AVGoldAsianBreakout )

Captures London-open momentum following the compressed Asian range. The strategy maps the Asian session high and low (configurable, default 00:00–06:00 GMT), then looks for one of two patterns at session open:

  • Sweep + Reversal mode — price wicks beyond the range and snaps back (high-probability stop-hunt fade)
  • Clean Breakout mode — price closes decisively beyond the range with momentum continuation

A configurable EMA 200 directional filter (default H1) prevents counter-trend entries on macro-aligned days. Stop loss is placed beyond the swept extreme plus a buffer; take profit is set as a fraction of the Asian range. Maximum trades per Asian range is capped (default 2) to prevent over-trading the same setup.

Strategy 2 — Trend Following EMA ( AVGoldTrendEMA )

Rides directional moves on the H1 timeframe using a SMA 9 / EMA 30 crossover, with optional EMA 200 macro filter. Entries are taken on confirmed crossovers with trend strength validation; stop loss is ATR-multiplied (default 2.0× ATR), and the position trails behind the EMA 30 plus an ATR buffer for dynamic exits.

The strategy includes ATR floor and ceiling filters: it will skip entries during flat compression (ATR below threshold) and during extreme volatility regimes (ATR above ceiling) where directional follow-through is statistically weaker.

Strategy 3 — Mean Reversion ( AVGoldMeanReversion )

Targets RSI extremes when gold overshoots its short-term range. The default confirmation stack uses Bollinger Bands (20, 2.0σ) + RSI (14) + MACD divergence, with an optional EMA 200 filter for the strictest mode. Three confirmation modes are available:

  • BB + RSI only — more signals, lower selectivity
  • BB + RSI + MACD divergence — balanced (default)
  • BB + RSI + MACD + EMA 200 — strictest, lowest signal count

Counter-trend entries get tight stops placed beyond the Bollinger band plus a buffer, and the strategy enforces a configurable cooldown between signals to prevent stacking on noisy oscillations.

Strategy 4 — Break of Structure ( AVGoldBoS )

Pure SMC (Smart Money Concept) logic. The strategy identifies swing highs/lows on the configured timeframe (default M15), waits for a structural break (HH→HL flip to LH→LL or vice versa) with a minimum break distance, then enters either:

  • Immediately on the break, or
  • On retest of the broken level, or
  • Both — break first, retest second (default)

Stop loss is placed beyond the originating structure plus a buffer; take profit defaults to 2.0× the SL distance, giving a structurally clean reward profile. EMA 200 macro filter optional.

Strategy 5 — Liquidity Sweep + FVG ( AVGoldLiquiditySweep )

Detects stop hunts at key levels during the London (07:00–10:00 GMT) and New York (13:00–16:00 GMT) Kill Zones by default — fully configurable. The strategy scans for Fair Value Gaps (FVGs) generated by the sweep impulse, requires a minimum FVG size (default 10 pips) and a minimum sweep distance, then fades the move once price re-enters the imbalance zone.

Stop loss sits beyond the swept extreme plus a buffer; minimum risk-reward ratio is 2.0 by default. FVGs older than the configurable max age (default 15 bars) are discarded.

03_dashboard.png


4. Risk Management Stack

The EA layers seven independent protections. Any of them can halt new entries; none of them can override another into taking risk.

Position sizing — 7 methods available:

  • Fixed lot
  • Percent risk per trade (default — 1% recommended)
  • Kelly Criterion
  • Half Kelly
  • Optimal F
  • ATR-volatility-adjusted
  • VaR-constrained

ATR-adaptive stops — Stop loss and take profit can use fixed pip values or ATR multiples (default: 1.5× ATR for SL, 2.0× ATR for TP). On v1.12+, an XAUUSD-specific stop-loss floor prevents the EA from taking entries during compressed-volatility Asian sessions where the calculated SL would be below a safe minimum — a common cause of premature stop-outs on classic ATR systems.

Trailing stop & break-even — Configurable activation thresholds (default: BE at +25 pips, trail starts at +30 pips with 15-pip distance behind price).

Daily loss limit — Default 3% of starting daily balance. When breached, the EA closes pending evaluation and refuses new entries until the next trading day.

Max drawdown enforcement — Default 10% from peak equity. Hard cap, no override.

News filter — Built on the MQL5 economic calendar. Four modes: off, high-impact only (default), high+medium, all news. Pause windows are configurable (default 30 min before, 15 min after).

Recovery mode — Distinct from "recovery martingale." When the EA registers N consecutive losses (default 3), it reduces position risk by a configurable percentage (default 50%) and continues at the lower size until the streak breaks. Risk floor prevents collapse to zero.

Volatility, spread, and distance filters — Min/max ATR ratio bounds, max spread enforcement (default 5 pips for XAUUSD), and minimum distance from existing open positions to prevent stacking.

Entry cooldown (v1.12+) — Same-direction re-entry on the immediately following bar is blocked, eliminating stack-on-noise behavior during choppy crosses.

05_performance.png


5. Prop Firm Mode

Quant Valencia Gold ships with seven prop firm presets that auto-configure daily loss limits, max drawdown caps, and weekend/news constraints to match each firm's rules:

PROP_NONE · PROP_CUSTOM · PROP_FTMO · PROP_MFF · PROP_FUNDEDNEXT · PROP_TFT · PROP_E8

Set InpPropFirmMode to your firm, set InpPropAccountSize to the challenge size (default $100 000), and enable InpPropStrictMode to enforce firm-specific limits as hard blocks rather than soft warnings. The EA will refuse trades that could breach the daily loss or trailing/static drawdown rule even by one tick of slippage tolerance.

This does not guarantee challenge passage — strategy performance still applies — but it removes the "killed by a 0.1% rule violation" failure mode that ends most challenges before any strategy edge has time to play out.


6. Dashboard & Cockpit

The on-chart UI has three components:

Trading Cockpit (top of chart) — Live status row showing balance, equity, floating P/L, today's P/L, position count, current spread/session/news state. Action buttons for manual long/short, close-all, close-buys, close-sells, close-winning, close-losing. Lot/risk-percent toggle with quick-adjust buttons. Per-strategy enable/disable toggles (S1–S5). Frequency control buttons (Conservative ↔ Normal ↔ Aggressive) with a 0.25× to 3.0× factor range.

Gold Metrics panel (left of chart) — Equity curve sparkline, EMA 200 trend state, ATR, RSI, candle momentum/body/wick analysis, current and peak drawdown, ATR volatility heatmap.

Account & Strategies panel (right of chart) — Account balance/equity/floating/free margin, per-strategy live status (waiting / signal / executing), trades summary with win rate, profit factor, average win/loss, expectancy.

Five themes available: Emerald (default), Dark Professional, Blue Modern, Green Matrix, Minimal Light. The chart background can sync to the EA theme automatically.

06_radar_profile.png


7. Recommended Profiles

Three starting profiles are bundled. Adjust to your account and risk tolerance:

Conservative (prop firm challenge / capital preservation)

  • InpRiskPercent = 0.5
  • InpScalpMode = SCALP_CONSERVATIVE
  • InpFreqMode = FREQ_MODE_CONSERVATIVE (0.75× factor)
  • InpMRConfirmMode = MR_BB_RSI_MACD_EMA (strictest)
  • InpUseSessionFilter = true (London + NY only)
  • InpDailyLossLimitPct = 2.0
  • InpMaxDrawdownPct = 5.0

Balanced (default — live retail account)

  • InpRiskPercent = 1.0
  • InpScalpMode = SCALP_AGGRESSIVE
  • InpFreqMode = FREQ_MODE_NORMAL (1.0×)
  • InpMRConfirmMode = MR_BB_RSI_MACD
  • InpDailyLossLimitPct = 3.0
  • InpMaxDrawdownPct = 10.0

Aggressive (experienced traders / higher signal frequency)

  • InpRiskPercent = 1.5
  • InpScalpMode = SCALP_ULTRA
  • InpFreqMode = FREQ_MODE_AGGRESSIVE (1.5× factor)
  • InpMRConfirmMode = MR_BB_RSI_ONLY
  • InpUseMTF = true (boost-only)
  • InpDailyLossLimitPct = 5.0

Telegram alerts can be enabled in any profile by setting InpTelegramEnabled = true and configuring your bot token (from @BotFather ) and chat ID (from @userinfobot ).


8. Internal Backtest Reference

Internal backtest, XAUUSD M15, October 2025 – March 2026 (6 months), $5 000 initial balance, fixed 0.05 lot for comparability:

Metric Value
Total trades 347
Win rate 61.1 %
Profit factor 1.34
Net profit $984.80
Max drawdown 4.8 %
Expectancy $2.84
Sharpe ratio 1.12
Recovery factor 4.10
Max consecutive wins / losses 9 / 5

Per-strategy win rates: S1 Asian Breakout 65.5 % (58 trades), S2 Trend EMA 63.9 % (72), S3 Mean Reversion 58.3 % (84), S4 BoS/SMC 56.9 % (65), S5 Liquidity Sweep 61.8 % (68).

Disclaimer. These are internal backtest results on historical data with fixed sizing for like-for-like comparison. Past performance does not guarantee future results. Live performance will differ due to spread, slippage, broker execution quality, and live market microstructure. A live MQL5 signal will be published as track record matures.  07_mandala_testing.png

Does it work on other symbols? No. The EA enforces XAUUSD symbol validation at startup (added in v1.11). Stop loss floors, ATR ranges, session windows, and Asian-range parameters are all calibrated specifically for gold's volatility profile.

Why M15 by default if some strategies are M5 and others H1? The EA can be attached to any timeframe between M5 and H1. M15 is the recommended attachment because it gives the dashboard a balanced refresh rate. Each strategy queries its own working timeframe internally, so attachment timeframe does not change how signals are generated.

Will it pass a prop firm challenge? The prop firm mode enforces the rules — daily loss, max DD, weekend exposure — but performance is not guaranteed. Set the matching preset, run the EA on a demo account replicating challenge conditions for at least two weeks before going live.

Does it use martingale, grid, or hedging? No. Every position has a hard stop loss. Recovery mode reduces position size after consecutive losses; it does not increase exposure to recover them. The EA cannot open opposing positions on the same symbol simultaneously.

Can I disable individual strategies? Yes. Each strategy has an InpGoldXxxEnabled flag in the inputs, and the cockpit has S1–S5 toggle buttons for runtime enable/disable.

What broker should I use? ECN or raw-spread accounts are strongly recommended — XAUUSD on a standard account often runs spreads above the 5-pip max filter, which will block most signals. Brokers commonly used by our customers: IC Markets Raw, Pepperstone Razor, Tickmill Pro, FusionMarkets, BlackBull. Always test on demo first.

Why is the launch price $99 if you're positioning this as institutional-grade? Because the product is brand-new. There is no live MQL5 signal yet, no public reviews, no multi-month forward track record. Trust gets earned, not announced. Early adopters take the risk of being first; in exchange, they get the product before the price climbs to its mature level ($149 after launch week, then +$50 every 10 copies sold).

12_now_live.png


10. Changelog

v1.13 — 2026.04.21 (current)

  • Dashboard fix: S5 Kill Zone status display now reflects user-configured input parameters instead of hardcoded defaults. No change to trading logic.

v1.12 — 2026.04.14

  • Adaptive pullback proximity band — tightens in expanding volatility, widens in contracting volatility
  • XAUUSD stop loss floor — prevents compressed-volatility entries during low-ATR Asian sessions
  • Entry cooldown — blocks same-direction re-entry on the following bar to avoid stacking on noisy crosses
  • Synchronized version headers across all modules
  • Performance and stability improvements across the signal engine

v1.11 — 2026.04.07

  • Enhanced signal engine with improved trend detection and pullback entries
  • Optimized SL/TP calibration for XAUUSD volatility profiles
  • Improved multi-position management for better capital efficiency
  • Refined strategy evaluation pipeline for faster signal processing
  • XAUUSD-only symbol validation for Market compliance
  • Updated dashboard data rendering

v1.10 — 2026.03.10

  • Initial public release · 5 strategies · 30 modules · prop firm presets · cockpit UI

11. Get Quant Valencia Gold

Lifetime license · Free updates · Direct developer support.

Pricing schedule:

  • Launch week: $99 (7 days from publication)
  • After launch: $149
  • Then +$50 every 10 copies sold until target price

View Quant Valencia Gold on the MQL5 Market →

For questions, support, or strategy discussion, leave a comment below or reach out via the AlgoSphere Quant profile on MQL5.


Quant Valencia Gold is a product of AlgoSphere Quant. Built on the AlgoSphere framework — see our free libraries on the MQL5 Code Base for the open-source modules that power our paid products.

Trading involves substantial risk. Past performance does not guarantee future results. Always test on demo before live deployment.