Integration of LSTM Networks in Random Forest Algorithms for Stock Market Trading Predictions
Juan C. King and
José M. Amigó ()
Additional contact information
Juan C. King: Centro de Investigación Operativa, Universidad Miguel Hernández, 03202 Elche, Spain
José M. Amigó: Centro de Investigación Operativa, Universidad Miguel Hernández, 03202 Elche, Spain
Forecasting, 2025, vol. 7, issue 3, 1-25
Abstract:
The aim of this paper is the analysis and selection of stock trading systems that combine different models with data of a different nature, such as financial and microeconomic information. Specifically, based on previous work by the authors and with the application of advanced techniques of machine learning and deep learning, our objective is to formulate trading algorithms for the stock market with empirically tested statistical advantages, thus improving results published in the literature. Our approach integrates long short-term memory (LSTM) networks with algorithms based on decision trees, such as random forest and gradient boosting. While the former analyzes price patterns of financial assets, the latter is fed with economic data of companies. Numerical simulations of algorithmic trading with data from international companies and 10-weekday predictions confirm that an approach based on both fundamental and technical variables can outperform the usual approaches, which do not combine those two types of variables. In doing so, random forest turned out to be the best performer among the decision trees. We also discuss how the prediction performance of such a hybrid approach can be boosted by selecting the technical variables.
Keywords: machine learning; stock market; algorithmic trading; recurrent neural networks; random forest; gradient boosting (search for similar items in EconPapers)
JEL-codes: A1 B4 C0 C1 C2 C3 C4 C5 C8 M0 Q2 Q3 Q4 (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2571-9394/7/3/49/pdf (application/pdf)
https://www.mdpi.com/2571-9394/7/3/49/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jforec:v:7:y:2025:i:3:p:49-:d:1747946
Access Statistics for this article
Forecasting is currently edited by Ms. Joss Chen
More articles in Forecasting from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().