# ๐Ÿค– QuantumBotX โ€” AI-Powered Modular Trading Bot for MT5 Welcome to **QuantumBotX**, your personal, modular, and smart trading assistant built with Python and MetaTrader5 (MT5). --- ## ๐Ÿš€ Quick Start with MT5 Integration **New to QuantumBotX?** Follow these 3 simple steps: ### โšก Step 1: Install MT5 Integration ```bash # Automatically detect, install, and configure MT5 python install_mt5_integration.py # This will: # โœ… Check Python compatibility # โœ… Install MetaTrader5 library # โœ… Verify MT5 platform installation # โœ… Create .env configuration template # โœ… Generate connection test script ``` ### ๐Ÿฆ Step 2: Setup MT5 Platform ```bash # 1. Download MT5 from: https://www.metatrader5.com/en/download # 2. Install with default settings # 3. Launch MT5 and create/login to demo account # 4. Keep MT5 running - it's required for data downloads ``` ### โš™๏ธ Step 3: Configure & Test ```bash # Edit your .env file with MT5 credentials: # MT5_LOGIN=your_account_number # MT5_PASSWORD=your_password # MT5_SERVER=FBS-Demo # Test your MT5 connection: python test_mt5_connection.py # Download market data (or use web interface): python lab/download_data.py # Start trading interface: python run.py ``` ### โ“ Need Help? - ๐Ÿ“– **Full Guide**: Check `MT5_SETUP_GUIDE.md` - ๐Ÿงช **Quick Test**: `python test_mt5_connection.py` - ๐Ÿ”ง **Manual Config**: Edit `.env` file directly --- ## ๐ŸŽฏ Key Features ### ๐Ÿ“Š **Professional Backtesting** - **MT5 Data Integration**: Download 50+ instruments directly from brokers - **Realistic Modeling**: Spread, slippage, and commission simulation - **Strategy Testing**: 16+ strategies with custom parameters - **Performance Analytics**: Equity curves, drawdown analysis, risk metrics ### ๐Ÿง  **Smart Bot Management** - **Real-Time Monitoring**: Live bot status with auto-refresh - **Risk Protection**: Ultra-safe position sizing, especially for gold/XAUUSD - **Strategy Switching**: Automated strategy adaptation to market conditions - **Multi-Broker Support**: XM Global, FBS, Exness, IC Markets, Pepperstone ### ๐Ÿ” **Market Analysis** - **Live Data Analysis**: Real-time signals from MT5 market data - **Multi-Timeframe**: Daily, H1, M15 analysis for comprehensive signals - **Holiday Detection**: Automatic Christmas/Ramadan mode activation - **AI Mentor**: Personalized trading guidance in Indonesian ### ๐Ÿ” **Safety First** - **Conservative Defaults**: Beginner-safe settings out of the box - **Account Protection**: Emergency brakes and risk limits - **Testing Mode**: Demo account support before live trading - **Clean Architecture**: Modular design for reliability --- ## ๐Ÿ—‚๏ธ Data Download Features ### Available Instruments - **Forex**: EURUSD, GBPUSD, AUDUSD, JPY pairs, major crosses - **Gold**: XAUUSD with ultra-conservative risk management - **Indices**: US30, US100, US500 (S&P 500), DE30, UK100 - **Commodities**: Oil (USOIL, UKOIL), Natural Gas - **Crypto**: BTCUSD, ETHUSD (if supported by broker) - **Exotic Pairs**: Currency pairs for advanced traders ### Data Quality - โœ… **4+ Years** of historical data - โœ… **OHLCV Format**: Open, High, Low, Close, Volume - โœ… **Broker Aliasing**: Automatic XAUUSD/USDIDR variant detection - โœ… **Timeframes**: H1 (recommended), M1, M5, M15, H4, D1 ### Download Methods 1. **Web Interface**: Click "Download Data MT5" button on backtesting page 2. **Command Line**: `python lab/download_data.py` 3. **Automatic Installer**: `python install_mt5_integration.py` --- ## ๐Ÿงช Technical Stack - **Python 3.10+** with async capabilities - **Flask** web framework with real-time updates - **MetaTrader5** direct broker integration - **pandas-ta** for technical analysis - **Chart.js** for interactive visualizations - **SQLite** with migration support --- ## ๐Ÿง  AI Mentor Features - **Indonesian Language**: Guidance in Bahasa Indonesia - **Emotional Intelligence**: Understanding trader psychology - **Performance Analysis**: Trade pattern recognition - **Risk Assessment**: Personalized risk tolerance evaluation - **Strategy Recommendations**: Matching strategies to trader level - **Motivational Support**: Contextual encouragement --- ## ๐Ÿ“š Educational Framework ### Beginner Path (Month 1) - **Week 1**: MA Crossover on EURUSD - **Week 2**: Bollinger Bands for range trading - **Week 3**: Basic risk management practices - **Week 4**: Understanding ATR-based position sizing ### Intermediate Path (Month 2-3) - **Strategy Rotation**: Multiple approaches per market - **Parameter Optimization**: Finding edge through testing - **Market Analysis**: Understanding different market regimes - **Risk Scaling**: Position sizing based on confidence ### Advanced Mastery (Month 4+) - **Strategy Combination**: Multi-strategy portfolios - **Market Timing**: When to trade what - **Risk Management**: Advanced portfolio protection - **Psychology**: Maintaining discipline --- ## โš ๏ธ Important Disclaimers **Trading Risks:** - FX trading involves substantial risk and may not be suitable for all - High leverage can amplify losses - Past performance โ‰  future results - Never trade with money you can't afford to lose **Software Usage:** - For educational/research purposes - Test thoroughly on demo accounts first - Creator not responsible for trading losses - Use at your own risk --- ## ๐Ÿค Support & Community - **Documentation**: Full setup guides in `/docs` - **Issues**: GitHub Issues for bugs/features - **Discussions**: Community support forum - **Updates**: Check changelog for improvements --- ## ๐Ÿ“ˆ What's Next? ### Current Features โœ… - โœ… **Agnostic Architecture**: Support for MT5, CCXT (Binance), and Mock Brokers - โœ… MT5 Integration with 50+ instruments - โœ… 16 Trading strategies with risk management - โœ… AI mentor in Indonesian - โœ… Professional backtesting engine - โœ… Holiday-aware trading modes - โœ… Ultra-conservative gold/XAUUSD protection ### Coming Soon ๐Ÿšง - ๐Ÿ”„ Telegram notifications - ๐Ÿ”„ Advanced portfolio analytics - ๐Ÿ”„ Multi-broker arbitrage - ๐Ÿ”„ Custom strategy builder - ๐Ÿ”„ Community marketplace --- ## โ˜• Support Development Enjoy QuantumBotX? Consider supporting future development: [img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate with PayPal"](https://www.paypal.com/paypalme/chrisnov-it) --- Happy Trading! ๐ŸŽฏ๐Ÿ“Š๐Ÿ†