Built to order

Stock Price Prediction using LSTM

An LSTM deep-learning model trained on NSE/BSE historical data that forecasts stock prices, computes technical indicators (RSI, MACD, moving averages), and backtests buy/sell signals on a Streamlit dashboard — the finance-ML crossover that stands out in every viva, with almost no kit-seller competition.

Illustrative mockup of the Stock Price Prediction using LSTM dashboard.
More project photos (2)

The problem

Overview:
Every final-year student wants an ML project that isn't the 50th disease-prediction clone. Stock price prediction hits different: it combines deep learning (LSTM time-series forecasting) with genuine finance domain knowledge, and the demo — a live dashboard forecasting tomorrow's price of RELIANCE or TCS — holds a viva room's attention like nothing else. This project trains LSTM and GRU networks on NSE/BSE historical data, layers on technical indicators, and backtests trading signals so you defend a methodology, not just an accuracy number. Finance + deep learning is a high-demand student search with almost no kit-seller competition — blogs and YouTube serve it today, not sellers.

How it works

How it works:

  1. The data module pulls historical OHLCV data for any NSE/BSE symbol via yfinance and caches it locally for offline demos.
  2. Prices are normalized and engineered into sliding-window sequences with technical-indicator features.
  3. An LSTM network (plus a GRU variant for comparison) trains on the sequences to predict the next N days' closing prices.
  4. The backtester converts predictions into buy/sell/hold signals and simulates the strategy against historical data with simplified transaction costs.
  5. The Streamlit dashboard renders live charts, indicator overlays, forecast bands, and backtest P&L — everything needed for the demo and the report.

Project features

Features:

  • LSTM and GRU models trained on NSE/BSE historical OHLCV data fetched via yfinance
  • Technical indicators: RSI, MACD, Bollinger Bands, 50/200-day moving averages
  • Interactive Streamlit dashboard with live price charts and forecast overlays
  • Backtesting engine that converts predictions into buy/sell signals and reports returns vs buy-and-hold
  • Model comparison module: LSTM vs GRU vs ARIMA vs linear baseline with RMSE/MAE metrics
  • Adjustable lookback window, forecast horizon, and train/test split for viva experiments
  • One-click report charts (loss curves, prediction-vs-actual) ready to paste into the project report
  • NSE/BSE symbol presets (RELIANCE, TCS, INFY, HDFCBANK) plus custom ticker input

What is included

What's included:

  • Complete source code: training notebooks + Streamlit dashboard app
  • Pre-trained model weights for an instant demo without training
  • Project report PDF (synopsis, literature on time-series deep learning, methodology, results, conclusion)
  • Presentation PPT for review/demo day
  • Viva Q&A sheet covering LSTMs, overfitting, backtesting pitfalls, and likely examiner questions
  • Setup guide (environment, dependencies, running the dashboard)

Limitations & prerequisites

Limitations:

  • This is an academic forecasting project, not financial advice — markets are non-stationary and past performance never guarantees future results
  • Prediction quality varies by symbol and market regime; sideways/choppy markets produce weak signals
  • Full training on CPU takes time; a GPU or Google Colab is recommended for training runs
  • yfinance data needs an internet connection; the demo runs fully offline on cached data
  • Transaction costs in backtesting are simplified estimates, not broker-accurate
Components & software requirements

Components:

  • Python 3.10+
  • TensorFlow/Keras (LSTM/GRU model definition and training)
  • yfinance (NSE/BSE historical data)
  • pandas, NumPy, scikit-learn (preprocessing, scaling, metrics)
  • Streamlit (interactive dashboard)
  • Plotly/Matplotlib (charts and report figures)
  • Technical indicator implementations (RSI, MACD, Bollinger)

Download abstract (PDF)

Related guides

All guides
Technical illustration of a cloud server pushing event envelopes outward to web application endpoints for payments, dashboards and chat.Web development and IoT students who have built a REST API or an ESP32 project and now need external services (payments, GitHub, messaging) to notify their app when things happen

Webhooks Explained: Receive Data from Payments, GitHub and IoT

A webhook lets a service call your server the moment an event happens — payments, code pushes, form submissions. This guide explains the event anatomy, HMAC signature verification, the fast-acknowledge reliability pattern, local testing, and how webhooks compare with polling, WebSockets and SSE.

Read guide
Illustration of object tracking showing video frames with bounding boxes and persistent ID labels following people and vehicles, comparing motion prediction and appearance matching.B.E./B.Tech Computer Science and Electronics students building video analytics projects — people counting, vehicle tracking, sports analysis — who have detection working and need

Object Tracking: DeepSORT and ByteTrack Explained

Detection finds objects per frame; tracking keeps their identities across frames. This guide explains tracking-by-detection, Kalman motion models, DeepSORT's appearance embeddings vs ByteTrack's low-confidence box recovery, tracking metrics (HOTA, IDF1, ID switches), and the tuning parameters that determine real-world quality.

Read guide
Illustration of image segmentation showing U-Net's U-shaped encoder-decoder with skip connections producing pixel masks, alongside Mask R-CNN detecting instances with masks.B.E./B.Tech Computer Science and AI/ML students moving from image classification or detection to pixel-level understanding — medical imaging, defect detection, autonomous driving

Image Segmentation: U-Net and Mask R-CNN

When projects need pixel-level answers, segmentation delivers. This guide explains semantic vs instance vs panoptic segmentation, U-Net's encoder-decoder with skip connections, Mask R-CNN's parallel mask head, Dice and IoU evaluation, paired augmentation, and how to choose the right architecture for your data and question.

Read guide
Get a quotation