# Stock-market-forecasting
**Repository Path**: ccfgtt/Stock-market-forecasting
## Basic Information
- **Project Name**: Stock-market-forecasting
- **Description**: Forecasting directional movements of stock prices for intraday trading using LSTM and random forest
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-10-28
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# [Forecasting directional movements of stock-prices for intraday trading using LSTM and random-forest](https://arxiv.org/abs/2004.10178)
**https://arxiv.org/abs/2004.10178**
**Pushpendu Ghosh, Ariel Neufeld, Jajati K Sahoo**
We employ both random forests on the one hand and LSTM networks (more precisely CuDNNLSTM) on the other hand as training methodology to analyze their effectiveness in forecasting out-of-sample directional movements of constituent stocks of the S&P 500, for intraday trading, from January 1993 till December 2018.
#### Requirements
```
pip install scikit-learn==0.20.4
pip install tensorflow==1.14.0
```
## Plots
We plot three important metrics to quantify the effectiveness of our model: [Intraday-240,3-LSTM.py](Intraday-240%2C3-LSTM.py) and [Intraday-240,3-RF.py](Intraday-240%2C3-RF.py), in the period January 1993 till December 2018.
**Intraday LSTM**: [Intraday-240,3-LSTM.py](Intraday-240%2C3-LSTM.py)
**Intraday RF**: [Intraday-240,3-RF.py](Intraday-240%2C3-RF.py)
**Next Day LSTM, krauss18**: [NextDay-240,1-LSTM.py](NextDay-240%2C1-LSTM.py) [1]
**Next Day RF, krauss17**: [NextDay-240,1-RF.py](NextDay-240%2C1-RF.py) [2]
#### Cumulative Money growth (after transaction cost)