Deep learning recurrent neural networks to model bitcoin closing prices. One model uses the FNG indicators to predict the closing price while the second model uses a window of closing prices to predict the nth closing price.
Due to the volatility of cryptocurrency speculation, investors will often try to incorporate sentiment from social media and news articles to help guide their trading strategies. One such indicator is the Crypto Fear and Greed Index (FNG) which attempts to use a variety of data sources to produce a daily FNG value for cryptocurrency.
In this project, I built and evaluated 2 deep learning recurrent neural networks to model bitcoin closing prices. One model uses the FNG indicators to predict the closing price while the second model uses a window of closing prices to predict the nth closing price. The goal is to determine if the FNG indicator provides a better signal for cryptocurrencies than the normal closing price data.
X_train = X_train.reshape((X_train.shape[0], X_train.shape[1], 1))
)In each Jupyter Notebook, the same custom LSTM RNN architecture is used. In one notebook, the FNG values data is used to train the model while in the second notebook, the closing prices data is used to train the model.
The same parameters and training steps are used for each model. This is necessary to compare each model accurately.
Key Findings:
The window size of 1 day works best for the model. As shown below:
FNG 10 day window loss = .1255 Closing 10 day window loss = .0067
FNG 1 day window loss = .093 Closing 1 day window loss = .00159
FNG 5 day window loss = .087 Closing 5 day window loss =.007