This project works to find what stock trading strategy is the most successful when given the choice between a machine, people on a subreddit, and company/stock metrics. An LSTM Neural Network was used to predict stocks for the machine learning method, WSB was used to make the decisions for the reddit method, and value metrics such as price-to-earnings and price-to-book were used for the algorithmic value investing strategy. You can check out my live dashboard and the performance/holdings of each account here.
- Python 3.10 installed
- A MYSQL Database named
purchase_history
- Initialized tables under the aliases:
algo_method
net_method
reddit_method
- Can be done by calling
db_initializer
and changing the table name at the bottom
- Can be done by calling
- Run
pip install -e .
- Run
pip install -r requirements.txt
- Have filled in all the necessary information from
config_template.py
- Call
bot.py
- Choose which method to run
- R = Reddit Method (WSB)
- A = Algorithmic Method (Value Trading Strategy)
- M = Machine Learning Method (LSTM time-series predictions)
- Allow loading time to finish and purchases to be made
- Check MYSQL tables to make sure purchases went through
- Run
sheet_writer.py
by 4 a.m. (When account monitoring begins) - Run
streamlit run app.py
- Local and remote links will be given once run to check the app
- Feel free to use my powershell scripts by exporting the XML file to the Task Scheduler