This is a project to create a stock bot that can predict the stock price of a company using machine learning.
DISCLAIMER: In general, there is no preference given to any of these metrics, models, and resources, this is not a recommendation to use them. Besides implementing and categorizing them Uhstray.io and all contributors are not officially suggesting any opinion on any of these, Uhstray.io and any contributors are not financial advisors. Do your own due diligence and speak to a professional financial advisor before making any financial decisions.
This project uses uv as a package manager. To install uv and the dependencies, run the following commands:
pip install -U uv
uv sync
Run the notebooks in the following order:
- pull_data.ipynb
- pull_events.ipynb
- pull_dividends_splits.ipynb
- prepare_dataset.ipynb
- train_model.ipynb
- analyze_model.ipynb
The code is divided into the following sections:
https://machinelearningmastery.com/xgboost-for-time-series-forecasting/ https://www.kaggle.com/code/faressayah/stock-market-analysis-prediction-using-lstm/notebook
https://www.youtube.com/watch?v=vV12dGe_Fho https://www.youtube.com/watch?v=z3ZnOW-S550
https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.TimeSeriesSplit.html https://pandas-datareader.readthedocs.io/en/latest/remote_data.html