Skip to content

Pudamya/Stock_Price-Prediction_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Stock Price Prediction Dashboard

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.


Overview

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

Features

✔ 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


How It Works

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)

AI Model (LSTM)

  • 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

Technical Indicators

  • MA10 / MA50 → Trend detection
  • RSI → Momentum analysis

Dashboard Features

image image
  • Stock price visualization
  • Moving averages overlay
  • Key metrics (Price, RSI)
  • AI predicted price
  • BUY / SELL signals
  • Expandable raw data

Installation

git clone https://github.com/Pudamya/stock-price-prediction.git
cd stock-price-prediction

Run the App

streamlit run app.py

Open in browser:

http://localhost:8501


Sample Output

  • Actual vs trend visualization
  • AI predicted next-day price
  • Trading signals (BUY / SELL)

Limitations

  • 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

Author

Pudamya Vidusini Rathnayake

AI & Data Science Undergraduate


Support

If you found this project useful, consider giving it a ⭐ on GitHub!


Disclaimer

This project is for educational purposes only. It does NOT provide financial advice.

About

Machine learning-based system for analyzing historical stock market data and predicting future price trends using data-driven models and financial indicators.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors