Skip to content

Long short-term memory neural network for predicting a stock's next adjusted close.

License

Notifications You must be signed in to change notification settings

OscarAPrograms/StockAdjCloseLSTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StockAdjCloseLSTM

Disclaimer: Because this neural network relies purely on stock statistics (without sentiment analysis), it can not predict large shifts in a stock's adjusted close coming from financial news. This project was merely an exercise for me to build familiarity with Python and TensorFlow.

StockAdjCloseLSTM is an LTSM neural network model used to predict a stock's next adjusted close based on statistics (open price, high price, low price, and adjusted close price) from the last 7 complete trading days. Given a user-inputted stock ticker, this program downloads up to 10 years of stock data (from Yahoo Finance), divides this data into 7-day batches, and uses this parsed data to train the neural network.

Imports

After downloading "LSTMNeuralNetwork.py" and "requirements.txt", run "pip3 install -r requirements.txt" inside the project's directory to install its dependencies: yfinance, tensorflow, scikit-learn.

About

Long short-term memory neural network for predicting a stock's next adjusted close.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages