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
    ---><---

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.