IDEAS home Printed from https://ideas.repec.org/a/gam/jforec/v7y2025i3p49-d1747946.html
   My bibliography  Save this article

Integration of LSTM Networks in Random Forest Algorithms for Stock Market Trading Predictions

Author

Listed:
  • 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)

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.

Suggested Citation

  • Juan C. King & José M. Amigó, 2025. "Integration of LSTM Networks in Random Forest Algorithms for Stock Market Trading Predictions," Forecasting, MDPI, vol. 7(3), pages 1-25, September.
  • Handle: RePEc:gam:jforec:v:7:y:2025:i:3:p:49-:d:1747946
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-9394/7/3/49/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-9394/7/3/49/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. King, Juan C. & Dale, Roberto & Amigó, José M., 2024. "Blockchain metrics and indicators in cryptocurrency trading," Chaos, Solitons & Fractals, Elsevier, vol. 178(C).
    2. Jan Bouwens & Ties de Kok & Arnt Verriest, 2019. "The Prevalence and Validity of EBITDA as a Performance Measure," Comptabilité - Contrôle - Audit, Association francophone de comptabilité, vol. 25(1), pages 55-105.
    3. Jian Chen & Ahmad Haboub & Ali Khan & Syed Mahmud, 2025. "Investor clientele and intraday patterns in the cross section of stock returns," Review of Quantitative Finance and Accounting, Springer, vol. 64(2), pages 757-797, February.
    4. Byung-Kook Kang, 2023. "Optimal and Non-Optimal MACD Parameter Values and Their Ranges for Stock-Index Futures: A Comparative Study of Nikkei, Dow Jones, and Nasdaq," JRFM, MDPI, vol. 16(12), pages 1-27, December.
    5. Breitung, Christian, 2023. "Automated stock picking using random forests," Journal of Empirical Finance, Elsevier, vol. 72(C), pages 532-556.
    6. Hendershott, Terrence & Riordan, Ryan, 2013. "Algorithmic Trading and the Market for Liquidity," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 48(4), pages 1001-1024, August.
    7. Ana Lazcano & Pedro Javier Herrera & Manuel Monge, 2023. "A Combined Model Based on Recurrent Neural Networks and Graph Convolutional Networks for Financial Time Series Forecasting," Mathematics, MDPI, vol. 11(1), pages 1-21, January.
    8. Xiuxian Wang & L. Jeff Hong & Zhibin Jiang & Haihui Shen, 2025. "Gaussian Process-Based Random Search for Continuous Optimization via Simulation," Operations Research, INFORMS, vol. 73(1), pages 385-407, January.
    9. Jan Bouwens & Ties de Kok & Arnt Verriest, 2019. "The Prevalence and Validity of EBITDA as a Performance Measure," ACCRA, Association francophone de comptabilité, vol. 25(1), pages 55-105.
    10. Juan C. King & Roberto Dale & Jos'e M. Amig'o, 2024. "Blockchain Metrics and Indicators in Cryptocurrency Trading," Papers 2403.00770, arXiv.org.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Xiaohang Ren & Wenqi Li & Xu Cheng & Xinwei Zheng, 2024. "Economic freedom and corporate carbon emissions: International evidence," Business Strategy and the Environment, Wiley Blackwell, vol. 33(8), pages 8388-8412, December.
    2. Lihki Rubio & Alejandro J. Gutiérrez-Rodríguez & Manuel G. Forero, 2021. "EBITDA Index Prediction Using Exponential Smoothing and ARIMA Model," Mathematics, MDPI, vol. 9(20), pages 1-14, October.
    3. Corinne Bessieux-Ollier & Grégoire Davrinche & Guillaume Dumas, 2022. "L'adaptation de la communication financière face à la crise COVID : le cas des résultats non-GAAP," Post-Print hal-03948560, HAL.
    4. Bang, You-Young & Lee, Dae Sung & Lim, Seong-Rin, 2019. "Analysis of corporate CO2 and energy cost efficiency: The role of performance indicators and effective environmental reporting," Energy Policy, Elsevier, vol. 133(C).
    5. Tomáš Zahradníček, 2024. "Non-IFRS Earnings Measures in Annual Reports of European Companies," European Financial and Accounting Journal, Prague University of Economics and Business, vol. 2024(2), pages 21-43.
    6. Mariana Bunea & Camelia-Daniela Hategan & Rodica Gabriela Blidisel & Adrian Doru Bigioi, 2025. "Adaptation of Banks to Sustainability Requirements and Impact on Their Financial Performance," The AMFITEATRU ECONOMIC journal, Academy of Economic Studies - Bucharest, Romania, vol. 27(70), pages 771-771, August.
    7. Rudy Setyopurnomo & Sudarso Kaderi Wiryono & Yuliani Dwi Lestari & Subiakto Sukarno, 2025. "Incorporating earned value management into income statements to improve project management profitability and elevate application in the business and management," PLOS ONE, Public Library of Science, vol. 20(1), pages 1-30, January.
    8. Ryan J. Casey & George W. Ruch, 2024. "Are earnings better than cash flows at predicting future cash flows? Evidence from apples-to-apples comparisons," Review of Accounting Studies, Springer, vol. 29(4), pages 3218-3257, December.
    9. Claudia Arena & Simona Catuogno & Nicola Moscariello, 2021. "The unusual debate on non-GAAP reporting in the current standard practice. The lens of corporate governance," Journal of Management & Governance, Springer;Accademia Italiana di Economia Aziendale (AIDEA), vol. 25(3), pages 655-684, September.
    10. Mattia Iotti & Elisa Manghi & Giuseppe Bonazzi, 2024. "Debt Sustainability Assessment in the Biogas Sector: Application of Interest Coverage Ratios in a Sample of Agricultural Firms in Italy," Energies, MDPI, vol. 17(6), pages 1-34, March.
    11. Joanna Toborek-Mazur & Magdalena Wójcik-Jurkiewicz, 2022. "Multi-Energy Concern as an Example of the Implementation of Agenda 2030: Poland as a Case Study," Energies, MDPI, vol. 15(5), pages 1-22, February.
    12. Vaiva Pakštaitė & Ernestas Filatovas & Mindaugas Juodis & Remigijus Paulavičius, 2025. "Bitcoin Price Regime Shifts: A Bayesian MCMC and Hidden Markov Model Analysis of Macroeconomic Influence," Mathematics, MDPI, vol. 13(10), pages 1-25, May.
    13. Nargis SULTANA & Fahad ZEYA & K.M. ZAHIDUL ISLAM & Antonio J. RODRIGUEZ, 2025. "The role of total assets in financial performance in North America: evaluating econometrics and machine learning approaches," Theoretical and Applied Economics, Asociatia Generala a Economistilor din Romania / Editura Economica, vol. 0(3(644), A), pages 161-176, Autumn.
    14. Pavol Durana & Katarina Valaskova & Roman Blazek & Jozef Palo, 2022. "Metamorphoses of Earnings in the Transport Sector of the V4 Region," Mathematics, MDPI, vol. 10(8), pages 1-14, April.
    15. Corinne Bessieux-Ollier & Grégoire Davrinche & Guillaume Dumas, 2022. "L'adaptation de la communication financière face à la crise COVID : le cas des résultats non-GAAP," Post-Print hal-03948567, HAL.
    16. Grande, Mar & Borondo, Javier, 2025. "Trust as a driver in the DeFi market: Leveraging TVL/MCAP bands as confidence indicators to anticipate price movements," Finance Research Letters, Elsevier, vol. 75(C).
    17. Melik Ertuğrul & Eylül Özdarak, 2025. "Measuring Airline Performance: An Integrated Balanced Scorecard-Based MEREC-CoCoSo Model," Sustainability, MDPI, vol. 17(13), pages 1-25, June.
    18. Richard Yeaw Chong Seow, 2023. "Comparative Financial Performance and Firm Valuation Analysis: A Malaysian Logistics Service Provider Case Study," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 7(7), pages 594-613, July.
    19. Robert J. Kauffman & Yuzhou Hu & Dan Ma, 2015. "Will high-frequency trading practices transform the financial markets in the Asia Pacific Region?," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 1(1), pages 1-27, December.
    20. George Jiang & Ingrid Lo & Giorgio Valente, 2014. "High-Frequency Trading around Macroeconomic News Announcements: Evidence from the U.S. Treasury Market," Staff Working Papers 14-56, Bank of Canada.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jforec:v:7:y:2025:i:3:p:49-:d:1747946. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.