pip install -r requirements.txt
The init.sh
script contains shell commands that initialize the SQLite3 database. It includes the company information and trading data. Please learn more from the init.sh
and related .sql files.
cd database
sh init.sh
python get_all_symbol.py
python get_company_info.py
python get_history_market_price.py
python get_daily_market_price.py
Train as often as you see fit, but ideally train daily. It is recommended to update the model at least once a week.
python get_train_set.py
cd trainset; sh split_file.sh; cd ..
python train.py
Please replace the model file path in predict.py
with your own trained model file.
python get_predict_set.py
python predict.py
And you will find the recommended stock trading strategies in the predictset
.