Skip to content

User Manual & Setup Guide – Gold News AI

    Overview

    Gold News AI is an advanced, AI-powered Expert Advisor designed specifically for XAUUSD (Gold/USD) trading. The system leverages cutting-edge artificial intelligence to analyze real-time news, economic data, and market sentiment to make informed trading decisions.

    πŸ†Key Technical Specifications

    • Version: 2.06
    • Compatible with: MetaTrader 5
    • Trading Pair: XAUUSD (Gold/USD) – Optimized specifically for Gold trading
    • Developer: Michael Schuster

    πŸ€–AI-Powered Analysis

    Integration with OpenAI GPT and Anthropic Claude models for real-time market intelligence.

    πŸ“°News Research

    Automated scanning of financial news, economic indicators, and central bank communications.

    πŸ“ŠTechnical Integration

    Combines AI insights with technical indicators for enhanced decision accuracy.

    πŸ›‘οΈRisk Management

    Multiple stop-loss modes, trailing stops, and intelligent position sizing.

    πŸ”„Recovery System

    Optional intelligent recovery mechanism for drawdown situations.

    πŸŽ›οΈProfessional Dashboard

    Real-time monitoring of all trading activities and AI analysis results.

    πŸ“‹System Requirements

    πŸ’»MetaTrader 5 Requirements

    • MetaTrader 5 build 3815 or higher
    • Windows 10/11 or Windows Server 2019/2022
    • Minimum 4GB RAM, 8GB recommended
    • Stable internet connection (for AI API calls)

    🏒Broker Requirements

    • ECN/STP broker with low spreads on XAUUSD
    • Maximum spread recommendation: 300 points (3.0 pips)
    • Minimum leverage: 1:100
    • Hedging allowed (if using hedging features)

    πŸ’°Account Requirements

    • Minimum account balance: $500 USD
    • Recommended: $2,000+ USD for optimal performance
    • Currency: USD (optimized for USD accounts)

    πŸ”§Installation Guide

    Step 1: Download and Install Files

    1. Download the Expert Advisor files from MQL5 Market in Meta Trader market section

    Step 2: Configure Web Requests (CRITICAL)

    ⚠️This step is mandatory for AI functionality!

    1. Open MetaTrader 5
    2. Go to: Tools β†’ Options β†’ Expert Advisors
    3. Enable: “Allow WebRequest for listed URL”
    4. Add these URLs to the allowed list:
    5. Click “OK” to save settings

    ❗ Important: Without proper WebRequest configuration, the AI features will not work!

    Step 3: Attach EA to Chart

    1. Open XAUUSD chart (any timeframe – EA manages its own analysis timeframes)
    2. Drag Gold News AIΒ  from Navigator β†’ Expert Advisors to the chart
    3. In the EA settings dialog, configure parameters (see Configuration section)
    4. Enable: “Allow live trading”
    5. Click “OK”

    πŸ€–AI API Setup & Configuration

    Supported AI Providers

    The system supports two premium AI providers:

    🧠OpenAI (GPT Models)

    • GPT-4.1-mini (Recommended – Cost-effective)
    • GPT-4.1 (Premium performance)
    • GPT-5 series (Experimental)

    🎯Anthropic (Claude Models)

    • Claude Sonnet 4 (Recommended – Balanced performance)
    • Claude Opus 4.1 (Maximum capability)

    Getting API Keys

    πŸ”‘OpenAI API Key Setup:

    1. Visit: https://platform.openai.com/
    2. Sign up or log in to your account
    3. Go to: API β†’ API Keys
    4. Click: “Create new secret key”
    5. Name your key: “Gold News AI Trading”
    6. Copy the key (starts with sk- )
    7. Add billing method in Billing section
    8. Set usage limits (recommended: $50-100/month)

    πŸ”‘Anthropic Claude API Key Setup:

    1. Visit: https://console.anthropic.com/
    2. Sign up or log in to your account
    3. Go to: Settings β†’ API Keys
    4. Click: “Create Key”
    5. Name your key: “Gold News AI Trading”
    6. Copy the key (starts with sk-ant- )
    7. Add payment method and set usage limits

    πŸ’°API Cost Estimation (60-minute intervals)

    Based on current API pricing (September 2025):

    AI ProviderInput CostOutput CostPer ResearchDaily CostMonthly Cost
    OpenAI GPT-4.1-mini
    (Recommended)
    $0.15/1M tokens$0.60/1M tokens~$0.005-0.015~$0.12-0.36~$3.60-10.80
    Claude Sonnet 4
    (Premium)
    $3.00/1M tokens$15.00/1M tokens~$0.02-0.06~$0.48-1.44~$14.40-43.20
    Dual AI Mode
    (Both providers)
    Combined costs~$0.60-1.80~$18-54


    πŸ’‘Cost Optimization Tips:

    • Start with 60-120 minute intervals to reduce costs
    • Use GPT-4.1-mini for cost-effective operation
    • Monitor API usage in provider dashboards
    • Set billing alerts to control spending

    βš™οΈConfiguration Parameters

    AI API Settings

    ParameterDescriptionRecommended Value
    AI_ProviderPrimary AI serviceOPENAI (for cost) or ANTHROPIC (for quality)
    UseDualAIUse both AI providersfalse (start with single AI)
    API_KeyPrimary AI API keyYour OpenAI or Claude key
    Claude_API_KeyClaude API key (if dual AI)Your Claude key (if using dual AI)
    OpenAI_ModelOpenAI model selectionGPT_4_1_MINI (cost-effective)
    Claude_ModelClaude model selectionCLAUDE_SONNET_4 (balanced)

    Trading Settings

    ParameterDescriptionRecommended ValueRange
    MagicNumberUnique EA identifier12345Any unique number
    LotSizeModePosition sizing methodFIXED_LOT (beginners)FIXED_LOT / AUTO_LOT
    FixedLotSizeFixed lot size0.010.01-1.0
    MaxRiskMax risk per trade (%)2.01.0-5.0
    MaxTradesMax positions per trend31-10 (0=unlimited)
    MinimumDistanceMin distance between positions150 pips50-500 pips
    ResearchIntervalAI research frequency60 minutes30-240 minutes
    MaxSpreadMaximum allowed spread300 points100-500 points

    Stop Loss Configuration

    ParameterDescriptionRecommended Value
    StopLossModeSL calculation methodTECHNICAL_INDICATOR
    StopLossPipsFixed SL (if using fixed mode)200 pips
    SL_TimeFrameTimeframe for High/Low SLTF_30_DAYS
    SL_BufferBuffer from High/Low25 pips
    ATRPeriodATR period for technical SL14
    ATRMultiplierATR multiplier2.5

    Trailing Stop Settings

    ParameterDescriptionRecommended Value
    UseTrailingStopEnable trailing stopstrue (recommended)
    TrailingStopPipsTrailing distance25 pips
    TrailingStepPipsTrailing step size5 pips
    TrailingStartPipsStart trailing after profit30 pips
    BreakevenTrailingMove to breakeven firsttrue

    Advanced Features (Optional)

    πŸ”„Recovery System

    • EnableRecovery: false (for beginners)
    • RecoveryDDStart: 5.0 (account currency)
    • RecoveryVolume: 0.03 (first recovery lot)
    • RecoveryStep: 20000 points

    πŸ›‘οΈHedging System

    • EnableHedging: false (for beginners)
    • HedgingMinLoss: 50.0 (account currency)
    • HedgingVolumePct: 50.0%

    πŸŽ›οΈDashboard Overview

    The EA includes a professional real-time dashboard displaying:

    πŸ“ŠMain Information Panel

    • AI Research Status: Current research state
    • AI Model Status: Active AI models and connection status
    • Next Research Countdown: Time until next analysis
    • Active Trades: Current number of positions
    • Last AI Decision: Most recent trading recommendation

    πŸ”Analysis Results Panel

    • Latest News: Key market-moving events
    • AI Reasoning: Decision logic and market analysis
    • Technical Confirmation: Technical analysis alignment
    • Trend Conflicts: Alerts when AI and technical analysis disagree

    πŸ“ˆPosition Monitoring

    • Trailing Stop Status: Individual position tracking
    • Recovery System: Recovery trades and P&L
    • Hedging Status: Active hedges and performance

    πŸ“ŠTrading Strategy & Logic

    AI Research Process

    1. πŸ“°News Scanning

    Real-time analysis of financial news sources:

    • Federal Reserve policy and interest rate decisions
    • Geopolitical events affecting safe-haven demand
    • Inflation data (CPI/PPI) and economic indicators
    • USD strength/weakness analysis
    • Central bank activities and gold reserves

    2. πŸ“ˆForecast Analysis

    Economic predictions vs. actual results:

    • NFP (Non-Farm Payrolls) forecasts vs. actual
    • CPI inflation expectations vs. reality
    • Fed interest rate decision forecasts
    • GDP growth forecasts and revisions

    3. 🧠AI Decision Making

    Multi-factor analysis producing:

    • Trend Direction: BULLISH/BEARISH/NEUTRAL
    • Strength Rating: 1-10 confidence level
    • Take Profit Target: Recommended TP in pips
    • Stop Loss Recommendation: AI-calculated SL (if enabled)

    Position Management

    πŸ“₯Entry Logic

    • AI trend confirmation required
    • Technical analysis alignment (if enabled)
    • Spread and market condition checks
    • Risk management validation
    • Maximum position limits respected

    πŸ“€Exit Logic

    • Take profit targets based on AI analysis
    • Stop loss protection (multiple modes available)
    • Trailing stop optimization
    • Recovery system activation (if enabled)
    • Hedging triggers (if enabled)

    πŸ”Monitoring & Optimization

    Daily Monitoring Checklist

    πŸŒ…Morning (Market Open):

    • Check AI research status in dashboard
    • Verify API key functionality
    • Review overnight news impact
    • Confirm spread conditions
    • Check active positions

    πŸ“ŠDuring Trading:

    • Monitor dashboard for trend changes
    • Watch for technical conflicts
    • Review trailing stop performance
    • Check recovery system status (if enabled)

    πŸŒ™Evening (Market Close):

    • Review daily performance
    • Check API usage and costs
    • Analyze trade decisions
    • Plan for next session

    Performance Optimization

    🎯For Better Accuracy

    • Use Dual AI mode (higher cost, better consensus)
    • Enable trend confirmation
    • Reduce research intervals (30-60 minutes)
    • Use Claude Opus 4.1 for maximum intelligence

    πŸ’°For Cost Efficiency

    • Use GPT-4.1-mini model
    • Increase research intervals (90-120 minutes)
    • Disable dual AI mode
    • Set strict API usage limits

    πŸ›‘οΈFor Risk Management

    • Start with small fixed lot sizes (0.01)
    • Enable trailing stops
    • Use technical stop loss mode
    • Limit maximum concurrent trades

    🚨Troubleshooting Guide

    Common Issues & Solutions

    ⚠️“AI connection failed – Technical mode”

    Cause: API key issues or WebRequest not configured

    Solution:

    1. Verify API keys are correctly entered
    2. Check WebRequest URLs are added to MT5
    3. Ensure API billing is active
    4. Test API connection in provider dashboard

    ⚠️“WebRequest failed” errors

    Cause: URLs not in allowed list

    Solution:

    1. Open Tools β†’ Options β†’ Expert Advisors
    2. Add both URLs to WebRequest list:
    3. Restart MetaTrader 5

    ⚠️“Insufficient margin” errors

    Cause: Account balance too low or lot size too high

    Solution:

    1. Reduce FixedLotSize parameter
    2. Increase account balance
    3. Check broker margin requirements
    4. Use AUTO_LOT mode with lower MaxRisk

    ⚠️No trades being placed

    Possible Causes & Solutions:

    1. Spread too high: Reduce MaxSpread parameter
    2. No AI signal: Check research status in dashboard
    3. Market closed: Verify trading hours
    4. Risk limits: Check maximum trades and distance settings
    5. Symbol issues: Ensure running on XAUUSD chart

    ⚠️High API costs

    Cost Reduction Strategies:

    1. Increase ResearchInterval to 120+ minutes
    2. Switch to GPT-4.1-mini model
    3. Disable dual AI mode
    4. Set API usage limits in provider dashboard

    πŸ“ˆBest Practices for Success

    πŸ’ΌAccount Management

    • Start Small: Begin with minimum lot sizes
    • Gradual Scaling: Increase position sizes as you gain confidence
    • Diversification: Don’t risk more than 2-5% per trade
    • Regular Monitoring: Check performance weekly

    πŸ€–AI Usage Optimization

    • Model Selection: Start with recommended models
    • Interval Tuning: Find balance between cost and performance
    • Trend Confirmation: Enable for additional validation
    • Cost Monitoring: Set up billing alerts

    πŸ›‘οΈRisk Management

    • Always Use Stop Losses: Never disable SL protection
    • Enable Trailing Stops: Protect profits automatically
    • Monitor Drawdown: Use recovery system conservatively
    • Stay Updated: Keep EA and MT5 updated

    πŸ“ŠMarket Conditions

    • Best Performance: During high-impact news events
    • Caution Periods: Major central bank announcements
    • Avoid: Low liquidity periods (holidays, weekends)
    • Optimal Timeframes: Most effective during EU/US overlap

    βš–οΈRisk Disclaimer

    Important Risk Warning:

    Forex and Gold trading involves substantial risk of loss and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange or precious metals, you should carefully consider your investment objectives, level of experience, and risk appetite.

    πŸ€–AI Trading Risks:

    • AI predictions are not guaranteed to be accurate
    • Market conditions can change rapidly
    • API failures may interrupt trading decisions
    • Past performance does not guarantee future results

    πŸ’‘Usage Recommendations:

    • Test thoroughly on demo accounts first
    • Start with minimal risk and lot sizes
    • Monitor performance regularly
    • Never risk more than you can afford to lose
    • Keep API costs within reasonable limits

    Educational Purpose: This Expert Advisor is provided for educational and research purposes. Users are responsible for their own trading decisions and risk management.

    www.mql5.com (Article Sourced Website)

    #User #Manual #Setup #Guide #Gold #News