IDEAS home Printed from https://ideas.repec.org/a/kap/apfinm/v32y2025i2d10.1007_s10690-024-09463-w.html
   My bibliography  Save this article

CAGTRADE: Predicting Stock Market Price Movement with a CNN-Attention-GRU Model

Author

Listed:
  • Ibanga Kpereobong Friday

    (Siksha ‘O’ Anusandhan (Deemed to Be) University)

  • Sarada Prasanna Pati

    (Siksha ‘O’ Anusandhan (Deemed to Be) University)

  • Debahuti Mishra

    (Siksha ‘O’ Anusandhan (Deemed to Be) University)

  • Pradeep Kumar Mallick

    (KIIT Deemed to be University)

  • Sachin Kumar

    (American University Armenia)

Abstract

Accurately predicting market direction is crucial for informed trading decisions to buy or sell stocks. This study proposes a deep learning based hybrid approach combining convolutional neural network (CNN), attention mechanism (AM), and gated recurrent unit (GRU) to predict short-term market trends (1 day, 3 days, 7 days, 10 days) across different stock indices (BSE, HSI, IXIC, NIFTY, N225, SSE). The architecture dynamically weights the input sequence with the AM model, captures local patterns through CNN and effectively models long-term dependencies with GRU thus aiming to accurately classify either "buy" or "sell" positions of stocks. The model is assessed using classification and financial evaluation metrics involving accuracy, precision, recall, f1-score, annualized returns, maximum drawdown, and return on investment. It outperforms benchmark models, and different technical indicators including average directional index, rate of change, moving average convergence divergence, and the buy-and-hold strategy, demonstrating its effectiveness in various market conditions. The proposed model achieves an average accuracy of 98% in predicting the 1 day-ahead direction, and an average accuracy of 88.53% across all prediction intervals. The model was also validated using the wilcoxon signed rank test that further supported its significance over the benchmark models. The CAG model presents a comprehensive and intuitive approach to stock market trend prediction, with potential applications in real-world asset decision-making.

Suggested Citation

  • Ibanga Kpereobong Friday & Sarada Prasanna Pati & Debahuti Mishra & Pradeep Kumar Mallick & Sachin Kumar, 2025. "CAGTRADE: Predicting Stock Market Price Movement with a CNN-Attention-GRU Model," Asia-Pacific Financial Markets, Springer;Japanese Association of Financial Economics and Engineering, vol. 32(2), pages 583-608, June.
  • Handle: RePEc:kap:apfinm:v:32:y:2025:i:2:d:10.1007_s10690-024-09463-w
    DOI: 10.1007/s10690-024-09463-w
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10690-024-09463-w
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10690-024-09463-w?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Burton G. Malkiel, 2003. "The Efficient Market Hypothesis and Its Critics," Working Papers 111, Princeton University, Department of Economics, Center for Economic Policy Studies..
    2. Suhwan Ji & Jongmin Kim & Hyeonseung Im, 2019. "A Comparative Study of Bitcoin Price Prediction Using Deep Learning," Mathematics, MDPI, vol. 7(10), pages 1-20, September.
    3. Huicheng Liu, 2018. "Leveraging Financial News for Stock Trend Prediction with Attention-Based Recurrent Neural Network," Papers 1811.06173, arXiv.org.
    4. Svetlana Borovkova & Ioannis Tsiamas, 2019. "An ensemble of LSTM neural networks for high‐frequency stock market classification," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(6), pages 600-619, September.
    5. Robert Engle, 2001. "GARCH 101: The Use of ARCH/GARCH Models in Applied Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 15(4), pages 157-168, Fall.
    6. Hu, Qinghua & Zhang, Rujia & Zhou, Yucan, 2016. "Transfer learning for short-term wind speed prediction with deep neural networks," Renewable Energy, Elsevier, vol. 85(C), pages 83-95.
    7. repec:pri:cepsud:91malkiel is not listed on IDEAS
    8. Burton G. Malkiel, 2003. "The Efficient Market Hypothesis and Its Critics," Journal of Economic Perspectives, American Economic Association, vol. 17(1), pages 59-82, Winter.
    9. Fama, Eugene F, 1990. "Stock Returns, Expected Returns, and Real Activity," Journal of Finance, American Finance Association, vol. 45(4), pages 1089-1108, September.
    10. Burton G. Malkiel, 2003. "The Efficient Market Hypothesis and Its Critics," Working Papers 111, Princeton University, Department of Economics, Center for Economic Policy Studies..
    11. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    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. Ata Ozkaya & Omer Altun, 2024. "Domestic and Global Causes for Exchange Rate Volatility: Evidence From Turkey," SAGE Open, , vol. 14(2), pages 21582440241, April.
    2. Montserrat Reyna Miranda & Ricardo Massa Roldán & Vicente Gómez Salcido, 2022. "Neuro-wavelet Model for price prediction in high-frequency data in the Mexican Stock market," Remef - Revista Mexicana de Economía y Finanzas Nueva Época REMEF (The Mexican Journal of Economics and Finance), Instituto Mexicano de Ejecutivos de Finanzas, IMEF, vol. 17(1), pages 1-23, Enero - M.
    3. Golinski, Adam & Madeira, Joao & Rambaccussing, Dooruj, 2014. "Fractional Integration of the Price-Dividend Ratio in a Present-Value Model," MPRA Paper 58554, University Library of Munich, Germany.
    4. Zakamulin, Valeriy, 2013. "Forecasting the size premium over different time horizons," Journal of Banking & Finance, Elsevier, vol. 37(3), pages 1061-1072.
    5. Firat Melih Yilmaz & Engin Yildiztepe, 2024. "Statistical Evaluation of Deep Learning Models for Stock Return Forecasting," Computational Economics, Springer;Society for Computational Economics, vol. 63(1), pages 221-244, January.
    6. Talebi, Alireza & Bragues, George & Hadlul, Seham & Sharma, Agam, 2025. "Global Stock Markets during Covid-19: Did Rationality Prevail?," Research in International Business and Finance, Elsevier, vol. 73(PA).
    7. Haytem Troug & Matt Murray, 2020. "Crisis determination and financial contagion: an analysis of the Hong Kong and Tokyo stock markets using an MSBVAR approach," Journal of Economic Studies, Emerald Group Publishing Limited, vol. 48(8), pages 1548-1572, December.
    8. Ignacio Escanuela Romana & Clara Escanuela Nieves, 2023. "A spectral approach to stock market performance," Papers 2305.05762, arXiv.org.
    9. Raehyun Kim & Chan Ho So & Minbyul Jeong & Sanghoon Lee & Jinkyu Kim & Jaewoo Kang, 2019. "HATS: A Hierarchical Graph Attention Network for Stock Movement Prediction," Papers 1908.07999, arXiv.org, revised Nov 2019.
    10. Jinho Lee & Raehyun Kim & Yookyung Koh & Jaewoo Kang, 2019. "Global Stock Market Prediction Based on Stock Chart Images Using Deep Q-Network," Papers 1902.10948, arXiv.org.
    11. Meet Satishbhai Sonani & Atta Badii & Armin Moin, 2025. "Stock Price Prediction Using a Hybrid LSTM-GNN Model: Integrating Time-Series and Graph-Based Analysis," Papers 2502.15813, arXiv.org.
    12. Chan, Wesley S. & Frankel, Richard & Kothari, S.P., 2004. "Testing behavioral finance theories using trends and consistency in financial performance," Journal of Accounting and Economics, Elsevier, vol. 38(1), pages 3-50, December.
    13. David M. Ritzwoller & Joseph P. Romano, 2019. "Uncertainty in the Hot Hand Fallacy: Detecting Streaky Alternatives to Random Bernoulli Sequences," Papers 1908.01406, arXiv.org, revised Apr 2021.
    14. Rohnn Sanderson & Nancy L. Lumpkin-Sowers, 2018. "Buy and Hold in the New Age of Stock Market Volatility: A Story about ETFs," IJFS, MDPI, vol. 6(3), pages 1-14, September.
    15. Dinabandhu Bag & Saurabh Goel, 2023. "Weak Form of Call Auction Prices: Simulation Using Monte Carlo Variants," Capital Markets Review, Malaysian Finance Association, vol. 31(1), pages 59-71.
    16. Roscoe, Philip & Howorth, Carole, 2009. "Identification through technical analysis: A study of charting and UK non-professional investors," Accounting, Organizations and Society, Elsevier, vol. 34(2), pages 206-221, February.
    17. Pernagallo, Giuseppe & Torrisi, Benedetto, 2020. "Blindfolded monkeys or financial analysts: Who is worth your money? New evidence on informational inefficiencies in the U.S. stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 539(C).
    18. Chia-Lin Chang & Jukka Ilomäki & Hannu Laurila & Michael McAleer, 2018. "Long Run Returns Predictability and Volatility with Moving Averages," Risks, MDPI, vol. 6(4), pages 1-18, September.
    19. Umara Noreen & Attayah Shafique & Usman Ayub & Syed Kashif Saeed, 2022. "Does the Adaptive Market Hypothesis Reconcile the Behavioral Finance and the Efficient Market Hypothesis?," Risks, MDPI, vol. 10(9), pages 1-14, August.
    20. Bell, Peter N, 2013. "New Testing Procedures to Assess Market Efficiency with Trading Rules," MPRA Paper 46701, University Library of Munich, Germany.

    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:kap:apfinm:v:32:y:2025:i:2:d:10.1007_s10690-024-09463-w. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.