Skip to content

Predicting Stock Volatility againt Gold prices via Yahoo finance API

Notifications You must be signed in to change notification settings

VedShashwat/Stock_Volatility_ML

Repository files navigation

Stock Volatility Predictor - Web Application

Quick Start Guide

1. Install Flask

pip install flask

2. Run the Application

python app.py

3. Access the Web Interface

Open your browser and go to: http://localhost:5000

How to Use

  1. Enter a stock ticker symbol (e.g., AAPL, MSFT, TSLA)
  2. Click "Predict" or press Enter
  3. View the volatility prediction (Low, Medium, or High)
  4. Check the confidence levels for each category

Features

  • Real-time stock data fetching using Yahoo Finance
  • ML-powered volatility prediction
  • Beautiful, responsive UI
  • Probability confidence levels
  • One-click example tickers

Tech Stack

  • Backend: Flask (Python)
  • Frontend: HTML, CSS, JavaScript
  • ML Model: Random Forest Classifier
  • Data Source: yfinance API

Notes

  • The model uses the latest 90 days of stock data
  • Gold prices (GC=F) are included as a feature
  • Predictions are based on: Open, High, Low, Close, Volume, and Gold Price

About

Predicting Stock Volatility againt Gold prices via Yahoo finance API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published