StockX AI is an advanced stock market forecasting web application that combines deep learning techniques (LSTM) with technical indicators such as RSI, MACD, and Moving Averages to generate accurate and actionable stock price predictions. Developed using Streamlit, the application offers an interactive, real-time experience tailored for data analysts, investors, and financial researchers.
- Moving Averages: View Demo
- Technical Indicators (RSI, MACD): View Demo
- Price Prediction Example: View Demo
- Full Application Walkthrough: Watch Recording
-
Real-time stock data integration via Yahoo Finance
-
Next-day closing price prediction using a pre-trained LSTM model
-
Technical indicators visualization:
- Moving Averages (MA50, MA100, MA200)
- Relative Strength Index (RSI)
- Moving Average Convergence Divergence (MACD)
-
Model performance evaluation using:
- Mean Absolute Error (MAE)
- Root Mean Squared Error (RMSE)
- R² Score
-
Deployed with Streamlit for a smooth and responsive user interface
| Metric | Value |
|---|---|
| Mean Absolute Error (MAE) | $11.36 |
| Root Mean Squared Error (RMSE) | $14.30 |
| R² Score | 0.9109 (Excellent Accuracy) |
Predicted Closing Price: $508.30 Evaluation Period: Microsoft (MSFT), 2015–2025
- The user provides a stock ticker and date range.
- Historical data is retrieved using the
yfinanceAPI. - Technical indicators are computed using the
talibrary. - Data is preprocessed and passed into a pre-trained LSTM model.
- The model predicts the next closing prices and visualizes actual vs. predicted results.
- Performance metrics are calculated and displayed on-screen.
StockX-AI/
│
├── app.py # Main Streamlit application script
├── Stock Predictions Model.keras # Pre-trained LSTM model
├── indicators.pdf, ma.pdf # Graphical representations
├── Screen Recording.mp4 # Application walkthrough video
├── requirements.txt # List of dependencies
└── README.md # Project documentation
| Layer | Technologies Used |
|---|---|
| Frontend | Streamlit |
| Backend | Python, TensorFlow (Keras), NumPy, Pandas |
| Data Source | Yahoo Finance (yfinance API) |
| Indicators | ta (Technical Analysis Library) |
| Visualization | Matplotlib |
Ensure the following Python packages are installed:
- Python 3.x
- TensorFlow / Keras
- Streamlit
- yfinance
- scikit-learn
- ta
- pandas
- matplotlib
- numpy
-
Clone the repository:
git clone https://github.com/your-username/StockX-AI.git cd StockX-AI -
Install the required dependencies:
pip install -r requirements.txt
-
Launch the Streamlit app:
streamlit run app.py
Mohammad Saqlain B.Tech in Artificial Intelligence & Data Science Specialized in predictive modeling, machine learning, and financial data analysis
- 📧 Email: saqlain.engineer7@gmail.com
- 🔗 LinkedIn: linkedin.com/in/saqlain3
- 💻 GitHub: github.com/SAKKU3