✨ CORE ENHANCEMENTS: • Beginner-friendly strategy system with educational framework • ATR-based dynamic risk management with market-adaptive position sizing • Multi-broker support with automatic symbol migration (XM Global optimized) • Advanced crypto trading strategies (SatoshiJakarta & QuantumCrypto bots) • Ultra-conservative XAUUSD protection system preventing account blowouts 🛡️ SAFETY & RISK MANAGEMENT: • Dynamic position sizing based on market volatility (ATR) • Emergency brake system for dangerous trades • Progressive learning path for beginners (Week 1-6 curriculum) • Strategy complexity ratings (2-12 scale) with difficulty-based recommendations • Special gold trading protection with fixed lot sizes 🎓 EDUCATIONAL FEATURES: • Strategy selector with automatic recommendations by experience level • Parameter validation with beginner-safe warnings • Educational explanations for every trading parameter • Market-specific strategy suggestions (FOREX vs GOLD vs CRYPTO) • Complete learning framework from beginner to expert 🔧 TECHNICAL IMPROVEMENTS: • Enhanced backtesting engine with comprehensive history tracking • Quiet logging system (user preference for clean terminal output) • Robust error handling and Windows compatibility fixes • Multi-timeframe analysis support across all strategies • Real-time market data integration with broker detection 📊 NEW STRATEGIES: • QuantumBotX Crypto: Bitcoin-optimized with weekend trading mode • Enhanced Hybrid: Auto-detects crypto vs forex for optimal parameters • Beginner-friendly MA Crossover with educational defaults • Advanced multi-indicator strategies (Mercy Edge, Pulse Sync) 🌐 PLATFORM EXPANSION: • Indonesian market integration planning (XM Indonesia support) • Multi-broker architecture foundation (cTrader, Interactive Brokers) • Comprehensive testing suite with 15+ validation scripts • Professional documentation and troubleshooting guides 📈 BETA READINESS: • Production-grade stability with 4 concurrent trading bots • Professional UI/UX with real-time performance tracking • Comprehensive error handling and user guidance • Windows-optimized deployment with MT5 integration Score: 10/10 Production Ready! 🏆
🤖 QuantumBotX — AI-Powered Modular Trading Bot for MT5
!MIT License !Python Version !Framework !Made with Love
Welcome to QuantumBotX, your personal, modular, and smart trading assistant built with Python and MetaTrader5 (MT5). Designed to be elegant, powerful, and flexible — whether you're a scalper, swing trader, or a strategy researcher.
🚀 Features
- ✅ Modular Strategy System: Easily create and plug in your own trading strategies.
- ✅ Comprehensive Backtester: Test your strategies against historical data with detailed performance metrics and visualizations.
- ✅ Real-Time Analysis: Live dashboard with data visualization using Chart.js.
- ✅ Adaptive Logic: Comes with a Hybrid strategy that adapts to trending or ranging markets.
- ✅ Automated Trading: Full position handling (entry, exit, SL, TP) using bot-specific magic numbers.
- ✅ Persistent Logging: All activities and trades are logged to a local SQLite database.
- ✅ Modern Web UI: Clean and responsive dashboard built with Flask and TailwindCSS.
- ✅ Multi-Timeframe Support: Analyze and trade on any standard timeframe from M1 to D1.
- ✅ Live/Demo Ready: Tested and ready for both demo and live trading accounts.
📦 Tech Stack
Python 3.10+Flask&TailwindCSSMetaTrader5Python Integrationpandas&pandas-tafor data analysisChart.jsfor data visualizationSQLitefor database
🧠 Strategy Examples
| Strategy | Description | Best For |
|---|---|---|
Moving Average Crossover |
Classic Golden/Death Cross. | Trending markets (e.g., Indices, XAUUSD). |
Bollinger Bands Reversion |
Mean reversion based on price touching the bands. | Ranging/Volatile markets (e.g., EURUSD). |
QuantumBotX Hybrid |
Adaptive strategy using ADX to switch between MA Crossover and Bollinger Bands. | All-weather performance. |
📈 Roadmap
- Advanced Strategy:
MACD_STOCH_FILTERfor more precise, filtered entries. - Telegram Notifications: Get real-time alerts for trades and errors.
- Portfolio Analytics: Deeper insights into your trading performance.
🔐 Environment Variables (.env)
Rename .env.example to .env, and fill in the following:
MT5_LOGIN="your_mt5_login"
MT5_PASSWORD="your_password"
MT5_SERVER="your_broker_server"
SECRET_KEY="any_flask_secret_key"
DB_NAME=bots.db
Note: The API keys for Alpha Vantage, CMC, and Finnhub are deprecated and can be ignored.
🧪 Local Setup (Dev Mode)
- Clone the repository:
git clone https://github.com/rebarakaz/quantumbotx.git cd quantumbotx - Set up Python virtual environment:
python -m venv venv # On Windows .\venv\Scripts\activate # On macOS/Linux source venv/bin/activate - Install dependencies:
pip install -r requirements.txt - Configure your environment:
cp .env.example .env # Now, edit the .env file with your MT5 credentials - Run the application:
python run.py
Important: You must have the MetaTrader 5 terminal installed and running on the same machine.
⚠️ Disclaimer
Trading foreign exchange on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite.
This software is provided "as is" for educational and research purposes. The author is not responsible for any financial losses incurred from using this bot. Always test thoroughly on a demo account before using on a live account.
📈 Screenshot
🧠 Author
Developed with 💖 by Chrisnov IT Solutions
Concept, Logic & Execution: @reynov aka BabyDev
☕ Support This Project
If you like this project, give it a ⭐ on GitHub, or buy me a coffee to support future versions:
📝 License
This project is licensed under the MIT License - see the LICENSE.md file for details.

