Stock Price Prediction Using Deep Learning (LSTM) with a Recursive Approach

Authors

  • Muhamad Syukron Zakka Department of Informatics, Faculty of Computer Science, Universitas Amikom Yogyakarta
  • Emigawaty Emigawaty Department of Informatics, Faculty of Computer Science, Universitas Amikom Yogyakarta

DOI:

https://doi.org/10.30871/jaic.v9i5.10514

Keywords:

Deep Learning, Machine Learning, Prediction Investment, LSTM, Prediction Recursive, Technical Indicators

Abstract

Stock price prediction is a critical topic in financial technology research, as accurate forecasts support better decision-making in volatile markets. Numerous studies have applied statistical and machine learning models; however, most focus on one-step-ahead predictions and lack evaluation of recursive strategies in multi-day horizons. This study investigates the application of Long Short-Term Memory (LSTM) with a recursive forecasting approach to enhance stock price prediction accuracy. The dataset was enriched with multiple technical indicators and processed through a systematic Knowledge Discovery in Databases (KDD) pipeline, including preprocessing, transformation, modelling, and evaluation. Experimental results show that the recursive LSTM model achieves superior performance compared to baseline machine learning methods, with high accuracy in short-term horizons and stable performance up to nine days ahead, although accuracy gradually declines due to error accumulation. This work highlights the importance of integrating recursive forecasting with technical indicators to improve predictive capability in emerging markets and provides a foundation for developing adaptive financial forecasting frameworks.

Downloads

Download data is not yet available.

References

[1] R. F. Engle and C. W. J. Granger, “Cointegration and error correction: Representation, estimation, and testing,” Econometrica, vol. 55, no. 2, pp. 251–276, 1987.

[2] J. Bollen, H. Mao, and X. Zeng, “Twitter mood predicts the stock market,” J. Comput. Sci., vol. 2, no. 1, pp. 1–8, 2011.

[3] S. Fischer and P. Krauss, “Deep learning with long short-term memory networks for financial market predictions,” Eur. J. Oper. Res., vol. 285, no. 1, pp. 309–324, 2020.

[4] H. Bao, J. Yue, and L. Rao, “A deep learning framework for financial time series using stacked autoencoders and long short-term memory,” PLoS ONE, vol. 12, no. 7, e0180944, 2017.

[5] M. H. Patel et al., “A hybrid LSTM-based model for stock price prediction,” Appl. Soft Comput., vol. 113, 2021.

[6] L. Kogan et al., “Predicting risk and returns using financial statement data,” Rev. Financial Stud., vol. 22, no. 12, pp. 4851–4892, 2009.

[7] T. A. Chen, M. Cheng, and X. Zhang, “Stock price prediction based on generative adversarial network,” Expert Syst. Appl., vol. 177, 2021.

[8] D. Zhang and L. Zhou, “Stock market prediction via multi-source multiple instance learning,” Decis. Support Syst., vol. 81, pp. 53–63, 2016.

[9] M. E. H. Chowdhury et al., “An LSTM-based stock price prediction using technical analysis indicators,” J. Big Data, vol. 8, no. 1, p. 1–25, 2021.

[10] Y. Kim, “Financial time series forecasting using support vector machines,” Neurocomputing, vol. 55, no. 1–2, pp. 307–319, 2003.

[11] A. Fischer and C. Krauss, “Deep learning with long short-term memory networks for financial market predictions,” Eur. J. Oper. Res., vol. 270, no. 2, pp. 654–669, 2018.

[12] J. Xiao, T. Deng, and S. Bi, “Comparative Analysis of LSTM, GRU, and Transformer Models for Stock Price Prediction,” arXiv, 2024.

[13] S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory,” Neural Comput., vol. 9, no. 8, pp. 1735–1780, 1997.

[14] Z. Yang, “Time-series prediction of stock price using deep learning,” Finance Research Letters, vol. 40, 2021.

[15] M. Moghaddam and M. H. P. Shirazi, “Hybrid deep learning approach for stock price prediction,” Expert Syst. Appl., vol. 160, 2020.

[16] H. Liu, X. Wang, and L. Deng, “Stock price prediction using attention-based multi-input LSTM model,” IEEE Access, vol. 8, pp. 196016–196028, 2020.

[17] D. Yang, Z. Xu, and J. Wang, “Stock market prediction using attention-based convolutional neural networks,” Neural Computing and Applications, vol. 32, no. 19, pp. 14765–14776, 2020.

[18] B. Chen, Y. Zhang, and H. Liu, “Financial time-series forecasting using transformers,” Expert Systems with Applications, vol. 205, 2022.

[19] K. S. Chong, B. A. Lee, and J. Yoon, “Predicting stock market trends using LSTM and XGBoost,” Applied Sciences, vol. 10, no. 16, pp. 5569, 2020.

[20] R. Selvin, R. Vinayakumar, and K. P. Soman, “Stock price prediction using LSTM, RNN and CNN-sliding window model,” International Conference on Advances in Computing, Communications and Informatics (ICACCI), pp. 1643–1647, 2020.

[21] M. Zhang, T. Li, and H. Li, “Stock market forecasting using a new hybrid machine learning model,” IEEE Access, vol. 9, pp. 35014–35026, 2021.

[22] A. A. Abarbanell and P. S. Bernard, “Integrating social media sentiment and technical analysis for stock prediction,” Journal of Computational Finance, vol. 27, no. 1, pp. 23–45, 2023.

[23] J. Qiu, K. Sun, and Y. Liu, “Financial time series forecasting with attention-based deep learning model,” Complexity, vol. 2020, Article ID 6318613, 2020.

[24] S. Wang, B. Yang, and X. Li, “Multi-factor stock market prediction using machine learning and big data analytics,” Journal of Big Data, vol. 9, no. 1, p. 74, 2022.

[25] T. Gudelek, A. Bolukbasi, and M. Ozbayoglu, “A deep learning based stock trading model using CNN and LSTM,” Procedia Computer Science, vol. 140, pp. 148–155, 2018 (referred in updated 2021 metaanalysis).

[26] K. Zhai and H. Zhou, “Adaptive deep learning framework for highfrequency stock prediction,” IEEE Transactions on Neural Networks and Learning Systems, Early Access, 2023.

[27] A. Abid, M. Zhang, V. K. Mishra, and J. Zou, “Gradio: Hassle-Free Sharing and Testing of ML Models in the Wild,” in Proceedings of the 36th International Conference on Machine Learning (ICML 2019), Workshop on Human in the Loop Learning, 2019.

[28] https://id.investing.com/equities/bank-rakyat-in-historical-data,

Downloads

Published

2025-10-08

How to Cite

[1]
M. S. Zakka and E. Emigawaty, “Stock Price Prediction Using Deep Learning (LSTM) with a Recursive Approach ”, JAIC, vol. 9, no. 5, pp. 2468–2477, Oct. 2025.

Similar Articles

<< < 2 3 4 5 6 > >> 

You may also start an advanced similarity search for this article.