Skip to content

Analyze historical stock data to identify trends and predict future movements using Pandas, NumPy, Matplotlib, and Seaborn.

Notifications You must be signed in to change notification settings

nmelgar/python-stock-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Stock Analyzer (Flask Web App)

This project is a web-based Stock Analysis tool built with Python and Flask, designed to analyze historical stock market data, visualize trends, and evaluate stock performance. The web interface allows users to search for any ticker, choose custom date ranges, and see detailed visualizations powered by the Yahoo Finance API.

This tool helps investors and enthusiasts:

  • Analyze historical price data
  • Visualize 20-day moving averages
  • View daily return volatility
  • Inspect basic company information

Data is powered by Yahoo Finance

Software Demo Video


Features

  • User-friendly web form to enter stock ticker and date range
  • Responsive design using Bootstrap 5
  • Data visualizations with Matplotlib
  • Key statistics and historical summary table
  • Ticker validation and error handling
  • Powered by Flask — ready to deploy

Development Environment

Tool / Library Purpose
Python 3 Core programming language
Flask Web framework
Pandas Data manipulation
yFinance Fetch stock data from Yahoo
Matplotlib Data visualization
Tabulate Console-based tables
Bootstrap 5 UI styling and responsiveness

Live Demo / Run Locally

To run this project locally:

git clone https://github.com/nmelgar/python-stock-analysis
cd python-stock-analysis
pip install -r requirements.txt
python app.py

Useful Websites


Future Work

  • Add real-time news integration for tickers
  • Implement machine learning models for price prediction
  • Add more technical indicators (e.g., RSI, MACD, Bollinger Bands)
  • Enable export to CSV/Excel for downloaded data
  • Deploy the app to a cloud platform like Render or Heroku

About

Analyze historical stock data to identify trends and predict future movements using Pandas, NumPy, Matplotlib, and Seaborn.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published