huseinzol05 /Stock-Prediction-Models
Gathers machine learning and deep learning models for Stock forecasting including trading bots and simulations
★ 9,516⑂ 3,047👁 4⑃ 9● 119▤ 0
+3
Daily
9,516
stars
3,047
forks
4
watchers
9
prs
119
issues
0
releases
README
---
Stock-Prediction-Models, Gathers machine learning and deep learning models for Stock forecasting, included trading bots and simulations.
Table of contents
Models
Agents
Realtime Agent
Data Explorations
Simulations
Tensorflow-js
Misc
Results
Results Agent
Results signal prediction
Results analysis
Results simulation
Contents
Models
Deep-learning models
1. LSTM
2. LSTM Bidirectional
3. LSTM 2-Path
4. GRU
5. GRU Bidirectional
6. GRU 2-Path
7. Vanilla
8. Vanilla Bidirectional
9. Vanilla 2-Path
10. LSTM Seq2seq
11. LSTM Bidirectional Seq2seq
12. LSTM Seq2seq VAE
13. GRU Seq2seq
14. GRU Bidirectional Seq2seq
15. GRU Seq2seq VAE
16. Attention-is-all-you-Need
17. CNN-Seq2seq
18. Dilated-CNN-Seq2seq
Bonus
1. How to use one of the model to forecast t + N, how-to-forecast.ipynb
2. Consensus, how to use sentiment data to forecast t + N, sentiment-consensus.ipynb
Stacking models
1. Deep Feed-forward Auto-Encoder Neural Network to reduce dimension + Deep Recurrent Neural Network + ARIMA + Extreme Boosting Gradient Regressor
2. Adaboost + Bagging + Extra Trees + Gradient Boosting + Random Forest + XGB
Agents
1. Turtle-trading agent
2. Moving-average agent
3. Signal rolling agent
4. Policy-gradient agent
5. Q-learning agent
6. Evolution-strategy agent
7. Double Q-learning agent
8. Recurrent Q-learning agent
9. Double Recurrent Q-learning agent
10. Duel Q-learning agent
11. Double Duel Q-learning agent
12. Duel Recurrent Q-learning agent
13. Double Duel Recurrent Q-learning agent
14. Actor-critic agent
15. Actor-critic Duel agent
16. Actor-critic Recurrent agent
17. Actor-critic Duel Recurrent agent
18. Curiosity Q-learning agent
19. Recurrent Curiosity Q-learning agent
20. Duel Curiosity Q-learning agent
21. Neuro-evolution agent
22. Neuro-evolution with Novelty search agent
23. ABCD strategy agent
Data Explorations
1. stock market study on TESLA stock, tesla-study.ipynb
2. Outliers study using K-means, SVM, and Gaussian on TESLA stock, outliers.ipynb
3. Overbought-Oversold study on TESLA stock, overbought-oversold.ipynb
4. Which stock you need to buy? which-stock.ipynb
Simulations
1. Simple Monte Carlo, monte-carlo-drift.ipynb
2. Dynamic volatility Monte Carlo, monte-carlo-dynamic-volatility.ipynb
3. Drift Monte Carlo, monte-carlo-drift.ipynb
4. Multivariate Drift Monte Carlo BTC/USDT with Bitcurate sentiment, multivariate-drift-monte-carlo.ipynb
5. Portfolio optimization, portfolio-optimization.ipynb, inspired from https://pythonforfinance.net/2017/01/21/investment-portfolio-optimisation-with-python/
Tensorflow-js
I code LSTM Recurrent Neural Network and Simple signal rolling agent inside Tensorflow JS, you can try it here, huseinhouse.com/stock-forecasting-js, you can download any historical CSV and upload dynamically.
Misc
1. fashion trending prediction with cross-validation, fashion-forecasting.ipynb
2. Bitcoin analysis with LSTM prediction, bitcoin-analysis-lstmTop issues
#97Save and load agents25 comments · 2020-10-05#35Is there any installation guide?8 comments · 2019-06-23#55transaction costs and slippage5 comments · 2019-08-31#88reason why agent can open multiple position in the same direction.4 comments · 2020-07-26#56Script for Long only and other for Short only4 comments · 2019-08-31#118How do I run the code????3 comments · 2022-12-13#105AttributeError: module 'tensorflow' has no attribute 'reset_default_graph'3 comments · 2021-03-31#95stock-forecasting-js gives error in console: Uncaught Error: Error in slice1D: begin[0] + size[0] (41) would overflow input.shape[0] (40)3 comments · 2020-09-25