An interactive AI-powered stock analysis system that combines technical indicators with a deep learning (LSTM) model to predict next-day stock prices and generate trading signals.
This project is a real-time stock prediction dashboard built using:
- Technical Analysis → Moving Averages, RSI
- Deep Learning (LSTM) → Time-series price prediction
- Streamlit UI → Interactive dashboard
The system allows users to:
- Visualize stock trends
- Analyze market indicators
- Predict next-day prices using AI
- Generate BUY/SELL signals
✔ Real-time stock data (Yahoo Finance) ✔ Moving Averages (MA10, MA50) ✔ RSI (Relative Strength Index) ✔ LSTM-based next-day price prediction ✔ AI + Indicator-based trading signals ✔ Interactive Streamlit dashboard ✔ Clean and simple UI
Stock Data (Yahoo Finance)
↓
Data Cleaning & Preprocessing
↓
Feature Engineering (MA10, MA50, RSI)
↓
LSTM Model (60-day sequence learning)
↓
Next-Day Price Prediction
↓
Trading Signals (AI + Trend-based)
- Uses past 60 days of stock prices
- Scales data using MinMaxScaler
- Trains a 2-layer LSTM network
- Predicts next-day closing price
Model logic:
- If predicted price > current → BUY
- Else → SELL
- MA10 / MA50 → Trend detection
- RSI → Momentum analysis
- Stock price visualization
- Moving averages overlay
- Key metrics (Price, RSI)
- AI predicted price
- BUY / SELL signals
- Expandable raw data
git clone https://github.com/Pudamya/stock-price-prediction.git
cd stock-price-predictionstreamlit run app.pyOpen in browser:
http://localhost:8501
- Actual vs trend visualization
- AI predicted next-day price
- Trading signals (BUY / SELL)
- Model is trained on limited historical data
- Retrains on every run (not optimized yet)
- Does not include external factors (news, events)
- Not suitable for real trading decisions
Pudamya Vidusini Rathnayake
AI & Data Science Undergraduate
If you found this project useful, consider giving it a ⭐ on GitHub!
This project is for educational purposes only. It does NOT provide financial advice.