CoolFace
Apppublic

hriday-goyal/stock-trend-visualizer

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

This app uses historical stock data and a trained LSTM model to forecast stock prices for multiple horizons (1, 7, 30, and 365 days).

๐Ÿ“ˆ Stock Trend Visualizer

An interactive stock forecasting tool powered by machine learning. Predicts next-day, 7-day, 30-day, and 365-day closing prices using LSTM and technical indicators (SMA, EMA, RSI).


๐ŸŒ Live App

๐Ÿ‘‰ Launch the App on Streamlit Cloud


๐Ÿง  Key Features

  • โ€”๐Ÿ“Š Visualizes historical stock prices with SMA and EMA overlays
  • โ€”๐Ÿค– Predicts the next-day closing price using Linear Regression
  • โ€”๐Ÿ“ก Fetches real-time data from Yahoo Finance (yfinance)
  • โ€”๐Ÿš€ Deployed on Streamlit Cloud, no local setup required

๐Ÿ› ๏ธ Tech Stack

ToolPurpose
PythonCore programming language
StreamlitInteractive web app framework
scikit-learnML model training & prediction
yfinanceReal-time financial data retrieval
pandasData preprocessing
matplotlibOptional charting support

๐Ÿ“‚ Repository Structure

stock-trend-visualizer/ โ”œโ”€โ”€ app/ โ”‚ โ”œโ”€โ”€ streamlitapp.py โ† Main app script โ”‚ โ””โ”€โ”€ linearmodel.pkl โ† Trained ML model โ”œโ”€โ”€ notebooks/ โ”‚ โ”œโ”€โ”€ 01datacollection.ipynb โ”‚ โ”œโ”€โ”€ 03modeltraining.ipynb โ”œโ”€โ”€ requirements.txt โ”œโ”€โ”€ README.md


๐Ÿงช To Run Locally

bash
git clone https://github.com/hriday-goyal/stock-trend-visualizer
cd stock-trend-visualizer/app
pip install -r ../requirements.txt
streamlit run streamlit_app.py

---
## About the Creator
Built by Hriday Goyal, an aspiring data scientist and high school innovator passionate about AI, finance, and real-world problem solving.