Gold Quant Expert is an advanced quantitative trading system specifically designed for gold (XAUUSD). It integrates institutional-grade VWAP (Volume-Weighted Average Price) logic with classic trend-following techniques to capture high-certainty intraday volatility.
1. Quick Start
- Trading Instrument: XAUUSD (Gold)
- Timeframe: M1 (1-minute)
- Account Type: Strongly recommended to use ECN or Raw Spread (ultra-low spread) accounts.
- VPS Recommendation: To ensure real-time VWAP calculations and ultra-fast execution, use a VPS with latency below 50ms.
2. Parameter Breakdown
2.1 Core Strategy Settings (Pro-Trend Entry Settings)
This section determines when the EA enters the market.
- Donchian Channel Period: Defines the boundaries for identifying market breakouts. The default value of 20 is suitable for capturing short-term breakout points.
- ADX Trend Strength Threshold: Core filter . The EA only considers the market to have sufficient momentum when the ADX value exceeds this threshold (e.g., 55), thereby avoiding sideways movements.
- ADX Period: Calculation period for the ADX indicator. Default is 14.
- Enable VWAP Institutional Cost Filter: (Strongly recommended). When enabled, the EA trades only within a reasonable range of the institutional average cost, significantly improving win rate.
2.2 Visual and Dashboard Settings
- Show Panel: Whether to display the UI panel on the chart.
- InpBgColor / InpHeaderColor / InpTextColor: Customize the panel's background, header, and text colors.
- Must use monospaced font for alignment: Ensure your MT5 has the Lucida Console font installed; otherwise, panel text may appear misaligned.
2.3 Risk Management and Take Profit
- InpMaxOrders: Maximum number of open positions allowed simultaneously. For strict risk control, set to 1.
- InpLotMode: Select order placement mode.
- FIXED_LOT : Place orders using a fixed lot size.
- LOT_RISK_PERC : Automatically calculates lot size based on a risk percentage of the account balance.
- InpFixedLot: Lot size per order when using fixed mode (e.g., 0.01).
- InpRiskPercent: Risk percentage per trade when using risk percentage mode (e.g., 1.0 represents 1%).
- InpTPMode: Take Profit mode selection.
- TP_PERCENT : Take profit based on a percentage of the total account balance (recommended).
- TP_AMOUNT_USD : Take profit based on a specific USD amount.
- InpTargetPercent: Profit target. For example, 0.76 means fully exiting when the account profit reaches 0.76%.
2.4 Global Risk Management
This is your "safety net" to prevent major losses caused by extreme market conditions.
- Enable Global Risk Management: Enable or disable global risk management.
- Protection Mode:
- Percentage of Balance : Hard stop-loss protection based on a percentage of the account balance.
- Maximum Loss Value: The maximum allowable loss. For example, 40.0 means when the account drawdown reaches 40%, the EA will automatically liquidate positions and stop trading to protect the remaining principal.

3. Official Recommended Settings (Presets Guide for 1k account)
You may manually input the following parameters based on your risk tolerance:
🟢 Option A: Steady_Wealth (Conservative)
Suitable for large capital, prioritizing extreme drawdown control.
- InpMaxOrders: 10
- InpLotMode: FIXED_LOT (0.01)
- InpTPMode: TP_AMOUNT: 3.8
- Maximum Loss Value: 20.0
🔵 Scheme B: Balanced_Growth (Balanced Growth Type)
Default recommendation, balancing returns and volatility.
- InpMaxOrders: 10
- InpLotMode: FIXED_LOT (0.02)
- InpTPMode: TP_AMOUNT: 7.6
- Maximum Loss Value: 40.0
4. Critical Tips
- Maximum Allowed Spread: Gold spreads can surge significantly during market open and major news events. The default 30.0 (30 points) is set to protect you from executing trades under high-spread conditions.
- Magic Number: If you run multiple gold charts on the same account, ensure each chart has a unique Magic Number (e.g., 1234).
- Initial Test: Before deploying to a live account, run the system on a demo account for at least one week to observe how the VWAP filter performs during different consolidation periods.
5. Technical Support (Contact Author)
For setup inquiries or to obtain the .set configuration file:
- Author: Bo Chen
- Telegram: https://t.me/kuiying001
Risk Disclaimer: Gold trading carries significant risk. This EA provides quantitative logic based on historical data and does not guarantee future profits. Invest prudently according to your financial circumstances.


