Professional-grade stock analysis with machine learning predictions and real-time technical indicators
A comprehensive, AI-powered stock market dashboard that combines advanced technical analysis, machine learning price predictions, and intelligent market insights in a beautiful, interactive interface.
- Machine Learning Price Prediction - Random Forest model with 30+ technical features
- AI Market Analysis - Natural language insights based on technical indicators
- Feature Importance Analysis - Understand what drives price movements
- Model Performance Metrics - Train/test accuracy with confidence levels
- Professional Charts - Multi-panel candlestick charts with technical overlays
- 20+ Technical Indicators - RSI, MACD, Bollinger Bands, Moving Averages, Stochastic
- Volume Analysis - Volume trends and confirmation signals
- Performance Metrics - Sharpe ratio, volatility, maximum drawdown
- Live Stock Data - Real-time prices from Yahoo Finance
- Multiple Timeframes - 1M to 5Y analysis periods
- Popular Stock Presets - Quick access to FAANG+ stocks
- Custom Symbol Input - Analyze any publicly traded stock
- Dark Theme - Easy on the eyes for extended analysis
- Responsive Design - Works perfectly on desktop and mobile
- Interactive Charts - Zoom, pan, and explore data
- Organized Tabs - Clean separation of different analysis types
Python 3.8 or higher- Clone the repository
git clone https://github.com/erikthiart/ai-stock-dashboard.git
cd ai-stock-dashboard- Install dependencies
pip install -r requirements.txt- Run the application
streamlit run stock_dashboard.py- Open your browser
Navigate to http://localhost:8501
streamlit>=1.28.0
yfinance>=0.2.18
pandas>=1.5.0
numpy>=1.24.0
plotly>=5.15.0
scikit-learn>=1.3.0
- Choose from popular presets (Apple, Tesla, Google, etc.)
- Or enter any stock symbol manually
- Select your preferred analysis timeframe
- Main Dashboard: Key metrics and price changes
- Technical Charts: Advanced multi-panel analysis
- Performance: Risk metrics and cumulative returns
- AI Predictions: Machine learning price forecasts
- Market Analysis: AI-generated insights
- ๐ข Green indicators: Bullish signals
- ๐ด Red indicators: Bearish signals
- ๐ก Yellow indicators: Neutral/mixed signals
โ ๏ธ Warning indicators: Overbought/oversold conditions
Our AI uses a Random Forest Regressor trained on 30+ features including:
- Price-based features: Returns, volatility, price changes
- Technical indicators: RSI, MACD, moving averages
- Volume features: Volume ratios and trends
- Lag features: Historical price and volume data
- Statistical features: Rolling means and standard deviations
Model Performance:
- Real-time training on historical data
- Cross-validation with train/test splits
- Feature importance analysis
- Confidence metrics displayed
| Indicator | Purpose | Interpretation |
|---|---|---|
| RSI | Momentum | >70 Overbought, <30 Oversold |
| MACD | Trend | Signal line crossovers |
| Bollinger Bands | Volatility | Price vs. bands position |
| Moving Averages | Trend | Price vs. MA relationships |
| Stochastic | Momentum | %K and %D oscillator |
| Volume | Confirmation | Volume vs. average ratios |
- Quick technical analysis of any stock
- AI-powered price predictions for next trading day
- Volume confirmation signals
- Multiple timeframe analysis
- Long-term performance metrics
- Risk assessment (volatility, drawdown)
- Company fundamental information
- Market trend analysis
- Understanding technical indicators
- Machine learning in finance
- Market behavior patterns
- Professional chart analysis
This tool is for educational and informational purposes only.
- Not financial advice or investment recommendations
- Past performance doesn't guarantee future results
- Always do your own research before investing
- Consider consulting with financial professionals
- Markets involve risk and potential loss of capital
โโโ stock_dashboard.py # Main application
โโโ requirements.txt # Dependencies
โโโ README.md # Documentation
โโโ screenshots/ # UI screenshots
โโโ main_dashboard.jpg
โโโ technical_analysis.jpg
โโโ ml_predictions.jpg
โโโ performance_metrics.jpg
โโโ ai_analysis.jpg
โโโ company_info.jpg
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Yahoo Finance for providing free stock data
- Streamlit for the amazing web framework
- Plotly for interactive visualizations
- scikit-learn for machine learning capabilities
If you find this project helpful, please give it a โญ on GitHub!
For questions or issues:
- Open an Issue





