Stock-Prediction-Models, Gathers machine learning and deep learning models for Stock forecasting, included trading bots and simulations.
- LSTM Recurrent Neural Network
- Encoder-Decoder Feed-forward + LSTM Recurrent Neural Network
- LSTM Bidirectional Neural Network
- 2-Path LSTM Recurrent Neural Network
- GRU Recurrent Neural Network
- Encoder-Decoder Feed-forward + GRU Recurrent Neural Network
- GRU Bidirectional Neural Network
- 2-Path GRU Recurrent Neural Network
- Vanilla Recurrent Neural Network
- Encoder-Decoder Feed-forward + Vanilla Recurrent Neural Network
- Vanilla Bidirectional Neural Network
- 2-Path Vanilla Recurrent Neural Network
- LSTM Sequence-to-Sequence Recurrent Neural Network
- LSTM with Attention Recurrent Neural Network
- LSTM Sequence-to-Sequence with Attention Recurrent Neural Network
- LSTM Sequence-to-Sequence Bidirectional Recurrent Neural Network
- LSTM Sequence-to-Sequence with Attention Bidirectional Recurrent Neural Network
- LSTM with Attention Scaled-Dot Recurrent Neural Network
- LSTM with Dilated Recurrent Neural Network
- Only Attention Neural Network
- Multihead Attention Neural Network
- LSTM with Bahdanau Attention
- LSTM with Luong Attention
- LSTM with Bahdanau + Luong Attention
- DNC Recurrent Neural Network
- Residual LSTM Recurrent Neural Network
- Byte-net
- Attention is all you need
- Fairseq
- Dilation CNN + LSTM RNN
- Deep Feed-forward Auto-Encoder Neural Network to reduce dimension + Deep Recurrent Neural Network + ARIMA + Extreme Boosting Gradient Regressor
- Adaboost + Bagging + Extra Trees + Gradient Boosting + Random Forest + XGB
- Turtle-trading agent
- Moving-average agent
- Signal rolling agent
- Policy-gradient agent
- Q-learning agent
- Evolution-strategy agent
- Double Q-learning agent
- Recurrent Q-learning agent
- Double Recurrent Q-learning agent
- Duel Q-learning agent
- Double Duel Q-learning agent
- Duel Recurrent Q-learning agent
- Double Duel Recurrent Q-learning agent
- Actor-critic agent
- Actor-critic Duel agent
- Actor-critic Recurrent agent
- Actor-critic Duel Recurrent agent
- Curiosity Q-learning agent
- Recurrent Curiosity Q-learning agent
- Duel Curiosity Q-learning agent
- Neuro-evolution agent
- Neuro-evolution with Novelty search agent
- ABCD strategy agent
- stock market study on TESLA stock, tesla-study.ipynb
- Outliers study using K-means, SVM, and Gaussian on TESLA stock, outliers.ipynb
- Overbought-Oversold study on TESLA stock, overbought-oversold.ipynb
- Which stock you need to buy? which-stock.ipynb
- Stock market simulation using Monte Carlo, stock-forecasting-monte-carlo.ipynb
- Stock market simulation using Monte Carlo Markov Chain Metropolis-Hasting, mcmc-stock-market.ipynb
- Portfolio optimization, portfolio-optimization.ipynb, inspired from https://pythonforfinance.net/2017/01/21/investment-portfolio-optimisation-with-python/
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.
- fashion trending prediction with cross-validation, fashion-forecasting.ipynb
- Bitcoin analysis with LSTM prediction, bitcoin-analysis-lstm.ipynb
- Kijang Emas Bank Negara, kijang-emas-bank-negara.ipynb
This agent only able to buy or sell 1 unit per transaction.
- Turtle-trading agent, turtle-agent.ipynb
- Moving-average agent, moving-average-agent.ipynb
- Signal rolling agent, signal-rolling-agent.ipynb
- Policy-gradient agent, policy-gradient-agent.ipynb
- Q-learning agent, q-learning-agent.ipynb
- Evolution-strategy agent, evolution-strategy-agent.ipynb
- Double Q-learning agent, double-q-learning-agent.ipynb
- Recurrent Q-learning agent, recurrent-q-learning-agent.ipynb
- Double Recurrent Q-learning agent, double-recurrent-q-learning-agent.ipynb
- Duel Q-learning agent, duel-q-learning-agent.ipynb
- Double Duel Q-learning agent, double-duel-q-learning-agent.ipynb
- Duel Recurrent Q-learning agent, duel-recurrent-q-learning-agent.ipynb
- Double Duel Recurrent Q-learning agent, double-duel-recurrent-q-learning-agent.ipynb
- Actor-critic agent, actor-critic-agent.ipynb
- Actor-critic Duel agent, actor-critic-duel-agent.ipynb
- Actor-critic Recurrent agent, actor-critic-recurrent-agent.ipynb
- Actor-critic Duel Recurrent agent, actor-critic-duel-recurrent-agent.ipynb
- Curiosity Q-learning agent, curiosity-q-learning-agent.ipynb
- Recurrent Curiosity Q-learning agent, recurrent-curiosity-q-learning.ipynb
- Duel Curiosity Q-learning agent, duel-curiosity-q-learning-agent.ipynb
- Neuro-evolution agent, neuro-evolution.ipynb
- Neuro-evolution with Novelty search agent, neuro-evolution-novelty-search.ipynb
- ABCD strategy agent, abcd-strategy.ipynb
This agent able to buy or sell N-units per transaction.
evolution strategy agent evolution-strategy-agent.ipynb
total gained 11037.529911, total investment 110.375299 %
evolution strategy with bayesian agent evolution-strategy-bayesian-agent.ipynb
total gained 13295.469683, total investment 132.954697 %
I will cut the dataset to train and test datasets,
- Train dataset derived from starting timestamp until last 15 days
- Test dataset derived from last 15 days until end of the dataset
So we will let the model do forecasting based on last 15 hours, and we will going to repeat the experiment for 10 times. You can increase it locally if you want, and tuning parameters will help you by a lot.
- LSTM Recurrent Neural Network, 95.693%
- Outliers study using K-means, SVM, and Gaussian on TESLA stock
- Overbought-Oversold study on TESLA stock
- Which stock you need to buy?
- Stock market simulation using Monte Carlo
- Stock market simulation using Monte Carlo Markov Chain Metropolis-Hasting
- Portfolio optimization