Installation Guide
This guide provides comprehensive installation instructions for the XAUUSD Trading Assistant AI on Windows, macOS, and Linux.System Requirements
Minimum Requirements
- Operating System: Windows 10+, macOS 10.14+, or Linux (Ubuntu 20.04+)
- Python: Version 3.8 or higher
- RAM: 4GB minimum (8GB recommended)
- Storage: 500MB free space
- Internet: Stable connection for API calls and market data
Required Accounts
- MetaTrader 5 Account: Live or demo trading account
- Groq API Key: Free tier available at console.groq.com
The bot works with both live and demo MetaTrader 5 accounts. We recommend starting with a demo account for testing.
Step 1: Install Python
- Windows
- macOS
- Linux
- Download Python from python.org
- Run the installer
- Important: Check “Add Python to PATH” during installation
- Verify installation:
Python 3.8.x or higher.Step 2: Install MetaTrader 5
Download MetaTrader 5
Download from metatrader5.com or your broker’s website.
Some brokers provide custom MT5 builds. Use your broker’s version if available.
Install and Configure
- Run the MetaTrader 5 installer
- Complete the installation wizard
- Launch MT5 and log in with your trading account credentials
- Go to Tools → Options → Expert Advisors
- Enable these options:
- ✅ Allow automated trading
- ✅ Allow DLL imports
- ✅ Allow WebRequests for listed URLs (add your broker’s URL)
Step 3: Clone the Repository
Clone the XAUUSD Trading Assistant AI repository:Step 4: Install Python Dependencies
Install required packages using pip:Required Packages
- MetaTrader5: Python integration for MT5
- pandas: Data manipulation and analysis
- numpy: Numerical computing
- langchain-groq: LangChain integration for Groq LLM
- streamlit: Web dashboard framework
Step 5: Configure Groq API
Get Your API Key
- Visit console.groq.com
- Sign up or log in
- Navigate to API Keys section
- Click Create API Key
- Copy your API key
Create Secrets File
Create the Create
.streamlit directory and secrets.toml file:.streamlit/secrets.toml with your API key:.streamlit/secrets.toml
Step 6: Verify Installation
Test your installation by starting the dashboard:Project Structure
After installation, your directory should look like this:Optional: Running in Production
For continuous operation, consider running the bot as a background service:- Linux (systemd)
- Windows (Task Scheduler)
- Docker
Create a systemd service file:Enable and start:
/etc/systemd/system/xauusd-bot.service
Next Steps
Quick Start
Run your first analysis in 5 minutes
Dashboard Guide
Learn to use the Streamlit interface
Architecture
Understand how the system works
Troubleshooting
Fix common installation issues
Getting Help
If you encounter issues during installation:- Check the Troubleshooting Guide
- Review the FAQ
- Open an issue on GitHub
For assistance, include your Python version, operating system, and complete error messages when reporting issues.