TriAI Gold Quant
- Experts
-
Lei Sun
Quantitative Trader & MQL4/MQL5 Systems Architect.
Engineering low-drawdown, high-robustness algorithmic trading systems grounded in statistical edge and market microstructure.
No holy grails—only mathematical discipline, strict risk control, and clean execution. - 버전: 3.21
- 업데이트됨: 30 11월 2026
- 활성화: 9
TriAI Gold Quant v3.21 — Volatility-Adaptive Multi-Strategy Gold EA (T1 / T3 Dual Modes)
Spot Gold Specialist (XAUUSD / H1) · v3.21 Dual Volatility Regime Switching · One-Click T1 / T3 Modes · 1+8 Strategy Portfolio Matrix · No Martingale / No Grid / Zero External Dependencies
TriAI Gold Quant is an automated, institutional-grade multi-strategy Expert Advisor for MetaTrader 5, purpose-built for Spot Gold (XAUUSD). Engineered for Gold's shifting market regimes—from quiet low-volatility chop to explosive directional trends—v3.21 unites 1 flagship core engine (Atlas) and 8 specialized sub-strategies under a unified volatility-adaptive risk framework running from a single H1 chart.
01 | What's New in v3.21: Dual Automatic Volatility Controls & Streak Protection
Version 3.21 introduces three fully automatic regime-adaptation and risk-control upgrades active in both T1 and T3 presets with zero manual intervention:
- Daily Low-Volatility Atlas Gate (D1 ATR Filter): On Gold hedging accounts, the EA monitors completed-bar D1 ATR(14). When daily volatility falls below 3,200 broker points, core engine Atlas (Strategy 3) automatically pauses new entries and cancels its unfilled pending orders to reduce whipsaw drag in quiet consolidation. Open Atlas trades continue to be managed normally, the other 8 engines follow their own rules, and Atlas resumes automatically once daily volatility recovers.
- High-Volatility Regime Harvest & Break-Even Lock (H1 ATR Switch): When H1 ATR(25) reaches 1,300 broker points, sub-strategies 4–9 automatically switch to a tighter 1,200-point take-profit harvest target paired with automatic Break-Even protection (activating at +600 points and locking +100 points). Strategy 3 simultaneously engages a 350-point high-volatility trailing stop to protect rapid impulse gains.
- Independent Atlas Closed-Deal Loss-Streak Decay: Strategy 3 tracks its own closed-deal sequence independently and automatically steps down risk during consecutive losses (0.75x after 1 loss, 0.50x after 2+ consecutive losses), restoring full sizing immediately after a winning close.
- Production Execution Hardening & Full Compatibility: Automatic broker SYMBOL_VOLUME_LIMIT clamping prevents volume rejections during compounding; native support for both Hedging and Netting accounts; all 9 engines and embedded custom indicators (EfficiencyRatio & RangeAverage) compile cleanly inside one standalone .ex5 file with 0 DLLs, 0 WebRequests, and 0 external server dependencies.
02 | One-Click T1 / T3 Mode Switch — Two Distinct Portfolio Profiles
Switch cleanly between two calibrated portfolio presets via the top-level PresetMode input—no separate files or complex manual optimization required:
| Configuration Parameter | T1 - Balanced Core (Default · Recommended) | T3 - High-Growth Compounding (Aggressive Profile) |
|---|---|---|
| Core Atlas Risk per Setup | 4% (Auto preset; customizable via Inp_AtlasRiskPct) | 6% (Auto preset; customizable via Inp_AtlasRiskPct) |
| Compounding Base Unit | $2,500 (Customizable via Inp_CustomUnitBalance) | $2,000 (Customizable via Inp_CustomUnitBalance) |
| Dynamic Drawdown Throttle | 35% throttle cap (graduated reduction steps at 8% / 15%) | 60% high-elasticity cap (graduated steps at 10% / 18% for wider volatility room) |
| Standard Take-Profit & Trailing | Dynamic 5x H1 ATR take-profit paired with trailing profit lock (TrailStart = 2200 / TrailDist = 1200 points) for smoother equity curves | Extended sub-strategy take-profit ceilings (4000 / 6000 / 8500 / 6500 points) with trailing protection (TrailDist = 1000 points) to capture larger trend waves |
| v3.21 Volatility Regime Engine | Enabled automatically (D1 Low-Vol Gate + H1 High-Vol 1,200-pt Harvest & BE + Atlas Streak Decay) | Enabled automatically (D1 Low-Vol Gate + H1 High-Vol 1,200-pt Harvest & BE + Atlas Streak Decay) |
| Core / Cluster Multipliers | CoreLotMultiplier = 4.0 / S9ClusterWeight = 2.5 | CoreLotMultiplier = 4.5 / S9ClusterWeight = 3.2 |
| Ideal Trader Profile | Traders prioritizing controlled drawdown, disciplined risk-adjusted compounding, and balanced live exposure | Experienced traders with higher risk tolerance seeking stronger upside acceleration during Gold trend cycles |
03 | Three-Pillar Quantitative Research Pipeline · 100% Native Local Execution
TriAI Gold Quant is built through a structured three-pillar quantitative workflow and compiled into a self-contained native MQL5 execution engine:
- Quantitative Architecture & Strategy Modeling: Deconstructs Gold's multi-timeframe microstructure into 9 complementary engines spanning breakout, momentum continuation, pullback, and volatility-expansion behaviors.
- Core MQL5 State-Machine Engineering & Tail-Risk Auditing: Production-grade cross-engine risk coordination, strict stop-level and spread checks, live broker session validation, and zero-warning compilation.
- Multi-Regime Robustness & Stress Verification: Portfolio weights, dynamic drawdown throttles, and automatic D1/H1 volatility thresholds are cross-checked across contrasting Gold volatility regimes.
04 | 9-Strategy Matrix & Institutional Risk Architecture
- 1 + 8 Uncorrelated Gold Strategy Matrix: Led by flagship Rank #1 engine Atlas alongside 8 risk-tiered sub-strategies (Zenith, Apex, Sirius, Phoenix, Vega, Nova, Orion, Titan). Each strategy operates in its own MagicNumber slot (reserving +0 to +17) with independent enable toggles and individual weight multipliers.
- Strict Institutional Discipline: No Martingale, No Grid, No Toxic Recovery. Every pending order and open trade carries a mandatory hard Stop Loss (SL) and defined Take Profit (TP).
- Centralized Pre-Entry Risk Coordination: All 9 strategies pass through a unified portfolio gate that verifies live spread limits (AU_MaxSpread), broker stop-level compliance, directional exposure, and active trade sessions prior to order submission.
- 4 Optional Account-Level Circuit Breakers: In addition to dynamic drawdown throttling and streak decay, traders can optionally activate Daily Loss Pause (A9_DailyLossPausePct), Same-Side Open Risk Budget Cap (A9_OpenRiskBudgetPct), Max Concurrent Orders (IC_MaxPositions), and Hard Equity Drawdown Guard (AU_EnableHardEquityGuard).
- Weekend Gap Protection & Native Black-Gold Control Deck: Optional Friday Pre-Weekend Flatten (V133_ExitOnFriday / AU_FridayStopHour) closes open exposure ahead of weekend closure; the built-in v3.21 Black-Gold Control Deck displays live preset mode, drawdown telemetry, and real-time status for all 9 engines directly on the chart.
05 | How to Verify Properly in MT5 Strategy Tester & Volatility Transparency
Download the free demo build and test directly on your own broker's historical feed before going live:
- Select Symbol & Timeframe: Open MT5 Strategy Tester, select TriAI Gold Quant, pick your broker's Gold symbol (XAUUSD / GOLD), and set timeframe to H1.
- Use Real Ticks Only: Choose modeling mode Every tick based on real ticks so intra-bar spikes and realistic spreads are captured accurately.
- Compare T1 vs T3 Side by Side: Run PresetMode = T1 first, then T3 using the exact same date range, starting balance ($1,000+ recommended), leverage, and execution delay. Compare Relative Equity Drawdown, Maximal Equity Drawdown, Profit Factor, and Trade Count.
Transparent Multi-Regime Note: Breakout strategies depend on sustained directional follow-through. Across quieter historical Gold consolidation periods (such as 2020–2023 lower-volatility conditions), simulated returns are materially lower and relative equity drawdowns are substantially higher than during high-volatility expansion phases. This contrast is the exact reason v3.21 embeds automatic D1 ATR(14) low-volatility gating, H1 ATR(25) high-volatility profit harvesting, and independent Atlas loss-streak decay.
06 | Recommended Setup
| Specification | Recommended Setting |
|---|---|
| Symbol | XAUUSD (GOLD / Spot Gold; auto-detects broker prefixes and suffixes) |
| Timeframe | H1 (1-Hour Chart) — Attach to a single XAUUSD H1 chart; all 9 engines coordinate automatically |
| Account Type | Hedging recommended (for full 9-strategy concurrency and D1 low-vol gate); natively compatible with Netting |
| Capital | Minimum $500; Recommended $1,000+ (Default auto-compounding unit: $2,500 on T1 / $2,000 on T3) |
| Leverage | 1:100 or higher (1:200 – 1:500 recommended) |
| Broker & Hosting | Low-spread ECN / Raw Gold broker paired with a reliable low-latency 24/7 VPS |
07 | Input Parameters
| Group | Parameter | Default | Description |
|---|---|---|---|
| 00 - Preset Switch | PresetMode | T1 - Balanced Core | One-click selector: T1 - Balanced Core (Default) or T3 - High-Growth Compounding |
| 01 - Core Strategy | AU_RunStrat3 | true | Enable/disable flagship Rank #1 core engine [01] Atlas (H1 Trend) |
| 01 - Core Strategy | Inp_AtlasRiskPct | 0.0 | Atlas risk % per trade (0 = Auto by mode: T1 = 4%, T3 = 6%) |
| 01 - Core Strategy | Inp_Scale3 | 1.00 | Individual lot-scale multiplier for Atlas (1.00 = Preset value) |
| 02 - Sub-Strategies | AU_RunStrat9 / Inp_Scale9 | true / 1.00 | [02 High] Zenith enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat8 / Inp_Scale8 | true / 1.00 | [03 High] Apex enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat6 / Inp_Scale6 | true / 1.00 | [04 Med+] Sirius enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat5 / Inp_Scale5 | true / 1.00 | [05 Med] Phoenix enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat7 / Inp_Scale7 | true / 1.00 | [06 Med] Vega enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat4 / Inp_Scale4 | true / 1.00 | [07 Med-] Nova enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat1 / Inp_Scale1 | true / 1.00 | [08 Low] Orion enable toggle & weight multiplier |
| 02 - Sub-Strategies | AU_RunStrat2 / Inp_Scale2 | true / 1.00 | [09 Low-] Titan enable toggle & weight multiplier |
| 03 - Risk & Sizing | MagicNumber | 3721 | Base MagicNumber (reserves +0 to +17 — space parallel instances by at least 20) |
| 03 - Risk & Sizing | IC_AllowAllNewEntries | true | Master entry switch (set false to manage existing positions only) |
| 03 - Risk & Sizing | Inp_UseCompounding | true | Enable balance compounding (false = fixed lot mode) |
| 03 - Risk & Sizing | Inp_CustomUnitBalance | 0.0 | Custom compounding balance unit (0 = Auto: T1 = $2,500, T3 = $2,000) |
| 03 - Risk & Sizing | AU_StartLots | 0.01 | Base lot sizing / minimum reference lot |
| 03 - Risk & Sizing | AU_MaxLotPerOrder | 40.0 | Maximum volume allowed per single order |
| 03 - Risk & Sizing | AU_MaxSpread | 500.0 | Maximum allowed spread for new entries in broker points |
| 03 - Risk & Sizing | A9_DailyLossPausePct | 0.0 | Daily loss % threshold to pause new entries (0 = Off) |
| 03 - Risk & Sizing | A9_OpenRiskBudgetPct | 0.0 | Maximum same-side open risk budget % (0 = Off) |
| 03 - Risk & Sizing | IC_MaxPositions | 0 | Maximum concurrent open positions + pending orders (0 = Unlimited) |
| 03 - Risk & Sizing | AU_EnableHardEquityGuard | false | Enable Hard Equity Drawdown protection switch |
| 03 - Risk & Sizing | AU_HardEquityDrawdownPercent | 35.0 | Hard Equity Drawdown trigger threshold (%) |
| 03 - Risk & Sizing | AU_ResetBalancePeak | false | Reset stored historical balance peak (set true once, then revert to false) |
| 04 - Weekend Rule | V133_ExitOnFriday | true | Enable Friday pre-weekend flatten & entry cutoff |
| 04 - Weekend Rule | AU_FridayStopHour | 19 | Friday flatten hour in broker server time (0–23; adjust to broker timezone) |
Risk Disclaimer
Trading leveraged Spot Gold (XAUUSD) and CFDs carries a high level of risk and may not be suitable for all investors. Historical backtests and simulated results do not guarantee future performance. Live results will vary depending on broker quote history, spreads, slippage, swaps, leverage, and execution conditions. Substantial drawdowns remain possible even with automatic volatility controls and risk guards active. Always test thoroughly on a demo account with your target broker before committing live funds, and choose T1 or T3 preset and sizing parameters strictly within your personal risk tolerance.

