https://github.com/jebin1999/algotrading-
Stock Price Prediction using LSTM
https://github.com/jebin1999/algotrading-
algorithm algorithmic-trading automation finance hft-trading quantitative-finance trading-algorithms
Last synced: 8 months ago
JSON representation
Stock Price Prediction using LSTM
- Host: GitHub
- URL: https://github.com/jebin1999/algotrading-
- Owner: Jebin1999
- Created: 2024-02-29T19:26:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-22T11:21:14.000Z (about 1 year ago)
- Last Synced: 2024-12-27T11:35:37.168Z (9 months ago)
- Topics: algorithm, algorithmic-trading, automation, finance, hft-trading, quantitative-finance, trading-algorithms
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stock Price Prediction Using LSTM
This repository contains a Python script that uses a Long Short-Term Memory (LSTM) neural network to predict stock prices. The model is trained on historical stock data fetched from Yahoo Finance using the `yfinance` library.
## Features
- Fetches stock data from Yahoo Finance.
- Preprocesses the stock data using MinMax scaling.
- Builds and trains an LSTM model to predict future stock prices.
- Visualizes the actual vs predicted stock prices.
- Displays the actual and predicted prices for each date.## Requirements
To run the script, you will need the following Python packages:
- `numpy`
- `pandas`
- `yfinance`
- `matplotlib`
- `scikit-learn`
- `tensorflow`You can install the required packages by running:
```bash
pip install numpy pandas yfinance matplotlib scikit-learn tensorflow