Cargando…

LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index

We use LSTM networks to forecast the value of the BTC and S&P500 index, using data from 2013 to the end of 2020, with the following frequencies: daily, 1 h, and 15 min data. We introduce our innovative loss function, which improves the usefulness of the forecasting ability of the LSTM model in a...

Descripción completa

Detalles Bibliográficos
Autores principales: Michańków, Jakub, Sakowski, Paweł, Ślepaczuk, Robert
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8839390/
https://www.ncbi.nlm.nih.gov/pubmed/35161663
http://dx.doi.org/10.3390/s22030917
_version_ 1784650358072541184
author Michańków, Jakub
Sakowski, Paweł
Ślepaczuk, Robert
author_facet Michańków, Jakub
Sakowski, Paweł
Ślepaczuk, Robert
author_sort Michańków, Jakub
collection PubMed
description We use LSTM networks to forecast the value of the BTC and S&P500 index, using data from 2013 to the end of 2020, with the following frequencies: daily, 1 h, and 15 min data. We introduce our innovative loss function, which improves the usefulness of the forecasting ability of the LSTM model in algorithmic investment strategies. Based on the forecasts from the LSTM model we generate buy and sell investment signals, employ them in algorithmic investment strategies and create equity lines for our investment. For this purpose we use various combinations of LSTM models, optimized on in-sample period and tested on out-of-sample period, using rolling window approach. We pay special attention to data preprocessing in the input layer, to avoid overfitting in the estimation and optimization process, and assure correct selection of hyperparameters at the beginning of our tests. The next stage is devoted to the conjunction of signals from various frequencies into one ensemble model, and the selection of best combinations for the out-of-sample period, through optimization of the given criterion in a similar way as in the portfolio analysis. Finally, we perform a sensitivity analysis of the main parameters and hyperparameters of the model.
format Online
Article
Text
id pubmed-8839390
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-88393902022-02-13 LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index Michańków, Jakub Sakowski, Paweł Ślepaczuk, Robert Sensors (Basel) Article We use LSTM networks to forecast the value of the BTC and S&P500 index, using data from 2013 to the end of 2020, with the following frequencies: daily, 1 h, and 15 min data. We introduce our innovative loss function, which improves the usefulness of the forecasting ability of the LSTM model in algorithmic investment strategies. Based on the forecasts from the LSTM model we generate buy and sell investment signals, employ them in algorithmic investment strategies and create equity lines for our investment. For this purpose we use various combinations of LSTM models, optimized on in-sample period and tested on out-of-sample period, using rolling window approach. We pay special attention to data preprocessing in the input layer, to avoid overfitting in the estimation and optimization process, and assure correct selection of hyperparameters at the beginning of our tests. The next stage is devoted to the conjunction of signals from various frequencies into one ensemble model, and the selection of best combinations for the out-of-sample period, through optimization of the given criterion in a similar way as in the portfolio analysis. Finally, we perform a sensitivity analysis of the main parameters and hyperparameters of the model. MDPI 2022-01-25 /pmc/articles/PMC8839390/ /pubmed/35161663 http://dx.doi.org/10.3390/s22030917 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Michańków, Jakub
Sakowski, Paweł
Ślepaczuk, Robert
LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index
title LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index
title_full LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index
title_fullStr LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index
title_full_unstemmed LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index
title_short LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index
title_sort lstm in algorithmic investment strategies on btc and s&p500 index
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8839390/
https://www.ncbi.nlm.nih.gov/pubmed/35161663
http://dx.doi.org/10.3390/s22030917
work_keys_str_mv AT michankowjakub lstminalgorithmicinvestmentstrategiesonbtcandsp500index
AT sakowskipaweł lstminalgorithmicinvestmentstrategiesonbtcandsp500index
AT slepaczukrobert lstminalgorithmicinvestmentstrategiesonbtcandsp500index