A powerful, real-time Bitcoin and cryptocurrency analyzer with MetaTrader 5 integration, featuring advanced technical analysis, machine learning predictions, and live data streaming.
- Live price feeds from MetaTrader 5
- Support for Bitcoin and multiple cryptocurrencies
- Multiple timeframes (M1, M5, M15, M30, H1, H4, D1, W1, MN1)
- Real-time account monitoring
- Moving Averages: SMA, EMA with multiple periods
- Momentum Indicators: RSI, MACD, Stochastic
- Volatility Indicators: Bollinger Bands, ATR
- Trend Indicators: ADX, CCI, Williams %R
- Volume Analysis: MFI and volume-based indicators
- Random Forest price direction prediction
- Feature engineering with technical indicators
- Confidence scoring for predictions
- Real-time model training and updates
- Professional candlestick charts with Plotly
- Multi-panel technical analysis views
- Real-time price updates
- Customizable chart layouts
- Windows: Native MetaTrader 5 support
- Linux: Wine-based MT5 bridge
- Google Colab: Complete setup automation
- Python 3.8 or higher
- MetaTrader 5 account (demo or live)
- Internet connection for data feeds
- Download the app and extract to a folder
- Run automated setup: Double-click
windows_setup.bat - Start the app: Run
python run_app.py - Open browser: Go to http://localhost:8501
π Detailed Windows Guide: WINDOWS_SETUP_GUIDE.md
- Clone the repository
git clone https://github.com/yourusername/btc-analyzer.git
cd btc-analyzer- Install dependencies
pip install -r requirements.txt- Run the application
python run_app.py
# OR
streamlit run src/btc_analyzer_app.py- Run the setup script in Colab
!wget https://raw.githubusercontent.com/yourusername/btc-analyzer/main/scripts/colab_setup.py
!python colab_setup.py- Clone and start the application
!git clone https://github.com/yourusername/btc-analyzer.git /content/btc-analyzer
!python /content/start_btc_analyzer.py- Install Wine and dependencies
sudo apt update
sudo apt install wine winetricks xvfb- Setup Python environment
pip install -r requirements.txt
pip install pymt5linux # or mt5linux- Configure Wine for MT5
winecfg # Set to Windows 10-
Download and install MT5
- Windows: Download from MetaQuotes website
- Linux: Use Wine to install Windows version
-
Enable algorithmic trading
- In MT5: Tools β Options β Expert Advisors
- Check "Allow automated trading"
- Check "Allow DLL imports"
-
Get broker credentials
- Login number
- Password
- Server name
The application uses the sidebar for all configuration:
-
MT5 Connection
- Enter your login credentials
- Select broker server
- Click "Connect to MT5"
-
Symbol Selection
- Choose from available symbols
- Bitcoin symbols are prioritized
- View symbol information
-
Analysis Parameters
- Select timeframe
- Adjust data points
- Configure indicators
- Launch the application
streamlit run src/btc_analyzer_app.py-
Connect to MetaTrader 5
- Use the sidebar connection form
- Enter your MT5 credentials
- Verify connection status
-
Select trading symbol
- Choose BTCUSD or other crypto pairs
- Review symbol information
- Select preferred timeframe
-
Load and analyze data
- Click "Load Data" to fetch historical data
- View technical indicators
- Check AI predictions
- Uses Random Forest machine learning
- Predicts next period price direction
- Provides confidence levels
- Updates in real-time
- RSI: Relative Strength Index (14-period)
- MACD: Moving Average Convergence Divergence
- Bollinger Bands: 20-period with 2 standard deviations
- Volume Analysis: 20-period volume moving average
- Candlestick Charts: OHLC price data
- Volume Bars: Trading volume analysis
- Indicator Overlays: Technical analysis overlays
- Multi-timeframe: Switch between different periods
btc-analyzer/
βββ src/
β βββ btc_analyzer_app.py # Main Streamlit application
β βββ mt5_integration.py # MetaTrader 5 integration module
βββ scripts/
β βββ colab_setup.py # Google Colab setup automation
βββ docs/
β βββ installation.md # Detailed installation guide
β βββ troubleshooting.md # Common issues and solutions
βββ config/
β βββ settings.py # Application configuration
βββ requirements.txt # Python dependencies
βββ README.md # This file
- Streamlit: Web application framework
- MetaTrader5: MT5 API integration
- Pandas/NumPy: Data processing
- Plotly: Interactive charts
- Scikit-learn: Machine learning
- TA-Lib: Technical analysis (optional)
- Connection: App connects to MT5 terminal
- Data Retrieval: Historical and real-time data fetched
- Processing: Technical indicators calculated
- Analysis: ML model training and prediction
- Visualization: Interactive charts and metrics
- Updates: Real-time data refresh
- Cryptocurrencies: BTCUSD, ETHUSD, LTCUSD, etc.
- Forex Pairs: EURUSD, GBPUSD, USDJPY, etc.
- Indices: US30, SPX500, NAS100, etc.
- Commodities: XAUUSD, XAGUSD, USOIL, etc.
-
MT5 Connection Failed
- Verify credentials and server name
- Check internet connection
- Ensure MT5 allows API connections
-
No Data Available
- Check symbol spelling
- Verify market hours
- Try different timeframe
-
Linux Installation Issues
- Install Wine properly
- Use Python 3.8+ with Wine
- Try alternative MT5 packages
-
TA-Lib Import Error
- Install TA-Lib binary
- Use basic indicators (automatic fallback)
- Check system dependencies
- Check the
docs/troubleshooting.mdfile - Review MT5 connection logs
- Verify Python and package versions
- Test with demo account first
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This software is for educational and informational purposes only. It should not be considered financial advice. Trading cryptocurrencies and forex involves substantial risk and may not be suitable for all investors. Always consult with qualified financial professionals before making investment decisions.
- Issues: GitHub Issues
- Documentation: Check the
docs/folder - Updates: Watch the repository for updates
Made with β€οΈ for the Bitcoin and crypto trading community