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
- 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!
- Open MetaTrader 5
- Go to: Tools β Options β Expert Advisors
- Enable: “Allow WebRequest for listed URL”
- Add these URLs to the allowed list:
- Click “OK” to save settings
β Important: Without proper WebRequest configuration, the AI features will not work!
Step 3: Attach EA to Chart
- Open XAUUSD chart (any timeframe – EA manages its own analysis timeframes)
- Drag Gold News AIΒ from Navigator β Expert Advisors to the chart
- In the EA settings dialog, configure parameters (see Configuration section)
- Enable: “Allow live trading”
- 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:
- Visit: https://platform.openai.com/
- Sign up or log in to your account
- Go to: API β API Keys
- Click: “Create new secret key”
- Name your key: “Gold News AI Trading”
- Copy the key (starts with sk- )
- Add billing method in Billing section
- Set usage limits (recommended: $50-100/month)
πAnthropic Claude API Key Setup:
- Visit: https://console.anthropic.com/
- Sign up or log in to your account
- Go to: Settings β API Keys
- Click: “Create Key”
- Name your key: “Gold News AI Trading”
- Copy the key (starts with sk-ant- )
- Add payment method and set usage limits
π°API Cost Estimation (60-minute intervals)
Based on current API pricing (September 2025):
AI Provider | Input Cost | Output Cost | Per Research | Daily Cost | Monthly 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
Parameter | Description | Recommended Value |
---|---|---|
AI_Provider | Primary AI service | OPENAI (for cost) or ANTHROPIC (for quality) |
UseDualAI | Use both AI providers | false (start with single AI) |
API_Key | Primary AI API key | Your OpenAI or Claude key |
Claude_API_Key | Claude API key (if dual AI) | Your Claude key (if using dual AI) |
OpenAI_Model | OpenAI model selection | GPT_4_1_MINI (cost-effective) |
Claude_Model | Claude model selection | CLAUDE_SONNET_4 (balanced) |
Trading Settings
Parameter | Description | Recommended Value | Range |
---|---|---|---|
MagicNumber | Unique EA identifier | 12345 | Any unique number |
LotSizeMode | Position sizing method | FIXED_LOT (beginners) | FIXED_LOT / AUTO_LOT |
FixedLotSize | Fixed lot size | 0.01 | 0.01-1.0 |
MaxRisk | Max risk per trade (%) | 2.0 | 1.0-5.0 |
MaxTrades | Max positions per trend | 3 | 1-10 (0=unlimited) |
MinimumDistance | Min distance between positions | 150 pips | 50-500 pips |
ResearchInterval | AI research frequency | 60 minutes | 30-240 minutes |
MaxSpread | Maximum allowed spread | 300 points | 100-500 points |
Stop Loss Configuration
Parameter | Description | Recommended Value |
---|---|---|
StopLossMode | SL calculation method | TECHNICAL_INDICATOR |
StopLossPips | Fixed SL (if using fixed mode) | 200 pips |
SL_TimeFrame | Timeframe for High/Low SL | TF_30_DAYS |
SL_Buffer | Buffer from High/Low | 25 pips |
ATRPeriod | ATR period for technical SL | 14 |
ATRMultiplier | ATR multiplier | 2.5 |
Trailing Stop Settings
Parameter | Description | Recommended Value |
---|---|---|
UseTrailingStop | Enable trailing stops | true (recommended) |
TrailingStopPips | Trailing distance | 25 pips |
TrailingStepPips | Trailing step size | 5 pips |
TrailingStartPips | Start trailing after profit | 30 pips |
BreakevenTrailing | Move to breakeven first | true |
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:
- Verify API keys are correctly entered
- Check WebRequest URLs are added to MT5
- Ensure API billing is active
- Test API connection in provider dashboard
β οΈ“WebRequest failed” errors
Cause: URLs not in allowed list
Solution:
- Open Tools β Options β Expert Advisors
- Add both URLs to WebRequest list:
- Restart MetaTrader 5
β οΈ“Insufficient margin” errors
Cause: Account balance too low or lot size too high
Solution:
- Reduce FixedLotSize parameter
- Increase account balance
- Check broker margin requirements
- Use AUTO_LOT mode with lower MaxRisk
β οΈNo trades being placed
Possible Causes & Solutions:
- Spread too high: Reduce MaxSpread parameter
- No AI signal: Check research status in dashboard
- Market closed: Verify trading hours
- Risk limits: Check maximum trades and distance settings
- Symbol issues: Ensure running on XAUUSD chart
β οΈHigh API costs
Cost Reduction Strategies:
- Increase ResearchInterval to 120+ minutes
- Switch to GPT-4.1-mini model
- Disable dual AI mode
- 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