Multi AI Advisor – User Manual – Setup Guide
π§ MetaTrader 5 WebRequest Setup {#mt5-webrequest-setup}
β οΈ CRITICAL: Without proper WebRequest setup, the AI features will NOT work!
Step 1: Open MetaTrader 5 Options
- Open MetaTrader 5
- Go to Tools β Options (or press Ctrl+O )
- Click on the Expert Advisors tab
Step 2: Enable WebRequest
- β Check “Allow WebRequest for listed URL”
Step 3: Add Required URLs
In the URL list, add the following URLs exactly as shown:
Step 4: Apply Settings
- Click OK to save settings
- Restart MetaTrader 5 completely
- Verify URLs are still listed after restart
π¨ Common WebRequest Issues
- URLs must be added without trailing slashes
- HTTPS is required (not HTTP)
- Case-sensitive – copy exactly as shown
- Must restart MT5 after adding URLs
π€ AI API Keys Setup {#ai-api-keys-setup}
π΅ Claude (Anthropic) API Setup
Cost: $15-20/month for moderate usage
Step 1: Create Account
- Go to console.anthropic.com
- Click “Sign Up” or “Get Started”
- Create account with email/password
- Verify your email address
Step 2: Add Billing Information
- Go to Billing section
- Add credit card or payment method
- Add initial credit ($5-20 recommended)
- Set spending limits if desired
Step 3: Generate API Key
- Navigate to API Keys section
- Click “Create Key”
- Give it a descriptive name (e.g., “MT5 Trading”)
- Copy the API key (starts with sk-ant- )
- Save immediately – you cannot view it again!
Step 4: Test API Key
- Test with a small query first
- Monitor usage in the console
- Set billing alerts
π’ OpenAI API Setup
Cost: $10-30/month for moderate usage
Step 1: Create Account
- Go to platform.openai.com
- Click “Sign up”
- Create account or use Google/Microsoft login
- Verify email and phone number
Step 2: Add Payment Method
- Go to Billing β Payment methods
- Add credit card
- Set usage limits (recommended: $20/month)
- Enable auto-recharge if desired
Step 3: Generate API Key
- Go to API keys section
- Click “Create new secret key”
- Name your key (e.g., “Multi AI Advisor”)
- Copy the key (starts with sk-proj- or sk- )
- Store securely – cannot be viewed again!
π‘ Grok (X.AI) API Setup
Cost: $25/month subscription + usage fees
Step 1: X Premium Account
- You need X Premium or X Premium+ subscription
- Go to x.ai or console.x.ai
- Sign in with your X (Twitter) account
- Verify you have Premium subscription
Step 2: Access API Console
- Navigate to X.AI console
- Accept terms of service
- Complete any required verification
Step 3: Generate API Key
- Find API Keys or Developer section
- Create new API key
- Copy the key (format may vary)
- Note: Grok API is newer, interface may change
π΄ DeepSeek API Setup
Cost: $5-15/month for moderate usage
Step 1: Create Account
- Go to platform.deepseek.com
- Click “Sign Up”
- Use email registration
- Verify email address
Step 2: Add Credits
- Go to Billing or Credits section
- Purchase API credits
- Minimum purchase usually $5-10
- Monitor credit usage
Step 3: Generate API Key
- Navigate to API Keys
- Create new key
- Copy the API key
- Test with small requests first
π£ Mistral AI API Setup
Cost: $8-20/month for moderate usage
Step 1: Create Account
- Go to console.mistral.ai
- Sign up with email
- Verify email address
- Complete profile setup
Step 2: Billing Setup
- Add payment method in Billing
- Purchase credits or set up subscription
- Set spending limits
- Configure usage alerts
Step 3: API Key Generation
- Go to API Keys section
- Create new API key
- Copy the key securely
- Test API connectivity
π¦ Llama (Together AI) API Setup
Cost: $10-25/month for moderate usage
Step 1: Together AI Account
- Go to api.together.xyz
- Sign up for account
- Verify email
- Complete onboarding
Step 2: Credits and Billing
- Add payment method
- Purchase initial credits ($10-20)
- Set up auto-recharge if needed
- Monitor usage dashboard
Step 3: API Key Creation
- Access API Keys section
- Generate new key
- Copy and store securely
- Note the key format
πΆ Google Gemini API Setup
Cost: $0-15/month (has free tier)
Step 1: Google Cloud Account
- Go to aistudio.google.com
- Sign in with Google account
- Accept Gemini API terms
- Complete setup wizard
Step 2: Enable Gemini API
- Go to Get API Key section
- Create new API key or use existing
- Enable billing if needed (for higher quotas)
- Set usage quotas
Step 3: API Key Setup
- Copy your API key
- Test with free tier first
- Monitor usage in Google Cloud Console
- Upgrade billing if needed
βοΈ EA Configuration {#ea-configuration}
Step 1: Install EA
- Copy Multi_AI_Advisor.ex5 to MQL5/Experts/ folder
- Restart MetaTrader 5
- Find EA in Navigator β Expert Advisors
Step 2: Apply to Chart
- Drag EA onto desired chart
- Expert Advisor settings window opens
- Configure settings as described below
Step 3: API Keys Configuration
In the AI API Settings section, enter your API keys:
Claude_API_Key = "sk-ant-api03-your-key-here" OpenAI_API_Key = "sk-proj-your-key-here" Mistral_API_Key = "your-mistral-key" Grok_API_Key = "your-grok-key" Deepseek_API_Key = "your-deepseek-key" Together_API_Key = "your-together-key" Gemini_API_Key = "your-gemini-key"
Step 4: AI Selection
Enable only the AIs you have API keys for:
- β Use_Claude = true (if you have Claude API key)
- β Use_OpenAI = true (if you have OpenAI API key)
- β Use_Mistral = false (if no API key)
- etc.
Step 5: Model Selection
Choose cost-effective models:
- Claude_Model = 0 (Haiku – cheapest)
- OpenAI_Model = 4 (GPT-4o-Mini – cheapest)
- Start with cheaper models to test
Step 6: Trading Settings
Trade_Lot_Size = 0.01 (minimum size for testing) Trade_Take_Profit = 0 (no TP initially) Trade_Stop_Loss = 0 (no SL initially) Query_Interval_Minutes = 15 (moderate frequency)
Step 7: Enable EA
- β Check “Allow automated trading”
- β Check “Allow DLL imports”
- Click OK to apply settings
π Troubleshooting {#troubleshooting}
Problem: “WebRequest not allowed”
Solution:
- Double-check all URLs in MT5 Options
- Ensure HTTPS (not HTTP)
- Restart MT5 completely
- Check Expert Advisors tab settings
Problem: “Invalid API Key” errors
Solution:
- Verify API key is copied correctly (no spaces)
- Check if API key is active (not expired)
- Verify billing/credits are available
- Test API key in provider’s console first
Problem: “Rate limit exceeded”
Solution:
- Increase Query_Interval_Minutes
- Disable some AI models temporarily
- Check if you’ve exceeded monthly quotas
- Upgrade API plan if needed
Problem: “AI Signal: Pending…”
Solution:
- Check internet connection
- Verify WebRequest URLs are correct
- Check MT5 logs for error messages
- Ensure market is open (AI queries pause when closed)
Problem: High API costs
Solution:
- Use cheaper models (Haiku, GPT-4o-Mini)
- Increase query intervals
- Disable unused AI services
- Set spending limits in API consoles
Problem: Dashboard not showing
Solution:
- Ensure Show_Dashboard = true
- Check chart zoom level
- Try different timeframe
- Remove and re-apply EA
π Security Best Practices {#security-best-practices}
API Key Security
- Never share API keys with anyone
- Don’t post keys in forums or screenshots
- Use separate keys for different applications
- Rotate keys regularly (monthly/quarterly)
- Set spending limits on all APIs
MetaTrader Security
- Use strong password for MT5 account
- Enable two-factor authentication if available
- Keep MT5 updated to latest version
- Don’t share .set files containing API keys
Cost Management
- Start with small limits ($10-20/month)
- Monitor usage daily initially
- Set billing alerts on all platforms
- Test with one AI before enabling all
- Use demo account for initial testing
Data Protection
- API keys are encrypted in EA parameters
- No data stored locally by EA
- Direct communication with AI providers
- No third-party data sharing
π‘ Pro Tips
Cost Optimization
- Start with Claude Haiku + OpenAI GPT-4o-Mini (cheapest combination)
- Use 30-60 minute intervals for swing trading
- Disable AI during low-volatility periods
- Monitor costs weekly until you understand usage
Performance Optimization
- Use faster timeframes (M15, H1) for better responsiveness
- Enable only 2-3 AI models initially
- Technical-only mode works great without API costs
- Test on demo account first
Best Practices
- Manual trading only – EA provides analysis, you decide
- Start small – 0.01 lots maximum initially
- Understand signals before increasing position size
- Keep trading journal to track EA signal accuracy
π Support & Resources
Getting Help
- Check this manual first for common issues
- Review MT5 Experts tab logs for errors
- Test individual APIs in their consoles
- Contact EA support with specific error messages
Useful Links
Before Contacting Support
Please provide:
- MT5 build version
- Error messages from Experts tab
- EA settings (without API keys!)
- Steps to reproduce the issue
- Operating system version
π― Remember: Success with Multi AI Advisor depends on proper setup, understanding the signals, and disciplined manual trading decisions. The EA provides analysis – trading decisions remain yours!