IDEAS home Printed from https://ideas.repec.org/a/zbw/jumsac/341437.html

Predicting stock market trends using convolutional neural networks: A deep learning approach

Author

Listed:
  • Özkul, Ege

Abstract

Technical analysis aims to predict stock returns based on price and volume patterns and has seen growing adoption of machine learning methods. However, most approaches rely on hand-crafted features. This paper investigates whether deep learning applied to stock chart images can predict future returns without manual feature engineering. Building on Jiang et al. (2023), this study applies Convolutional Neural Networks (CNNs), a computer vision architecture, to predict stock returns from price charts and extends their approach by implementing Vision Transformers, specifically the Class-Attention in Image Transformer (CaiT). Stock prices, volumes, and moving averages are encoded into images, which are used to train models that classify future stock returns as either positive or negative. Results show that both CNN and CaiT models outperform traditional technical indicators such as momentum and reversal strategies when applied to US stocks. Moreover, combining the two models yields incremental predictive power. An investment strategy based on their joint predictions achieves higher returns and Sharpe ratios than either model alone.

Suggested Citation

  • Özkul, Ege, 2026. "Predicting stock market trends using convolutional neural networks: A deep learning approach," Junior Management Science (JUMS), Junior Management Science e. V., vol. 11(1), pages 195-226.
  • Handle: RePEc:zbw:jumsac:341437
    DOI: 10.5282/jums/v11i1pp195-226
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/341437/1/1972505653.pdf
    Download Restriction: no

    File URL: https://libkey.io/10.5282/jums/v11i1pp195-226?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
    ---><---

    References listed on IDEAS

    as
    1. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," Review of Finance, European Finance Association, vol. 33(5), pages 2223-2273.
    2. Ryan Sullivan & Allan Timmermann & Halbert White, 1999. "Data‐Snooping, Technical Trading Rule Performance, and the Bootstrap," Journal of Finance, American Finance Association, vol. 54(5), pages 1647-1691, October.
    3. Andrew Detzel & Hong Liu & Jack Strauss & Guofu Zhou & Yingzi Zhu, 2021. "Learning and predictability via technical analysis: Evidence from bitcoin and stocks with hard‐to‐value fundamentals," Financial Management, Financial Management Association International, vol. 50(1), pages 107-137, March.
    4. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    5. Andrew W. Lo & Harry Mamaysky & Jiang Wang, 2000. "Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation," Journal of Finance, American Finance Association, vol. 55(4), pages 1705-1765, August.
    6. Allen, Franklin & Karjalainen, Risto, 1999. "Using genetic algorithms to find technical trading rules," Journal of Financial Economics, Elsevier, vol. 51(2), pages 245-271, February.
    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. Cakici, Nusret & Zaremba, Adam, 2025. "Accounting vs technical information: what matters more for stock return predictability?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 104(C).
    2. 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.
    3. Bajgrowicz, Pierre & Scaillet, Olivier, 2012. "Technical trading revisited: False discoveries, persistence tests, and transaction costs," Journal of Financial Economics, Elsevier, vol. 106(3), pages 473-491.
    4. Paul Handro & Bogdan Dima, 2024. "Analyzing Financial Markets Efficiency: Insights from a Bibliometric and Content Review," Journal of Financial Studies, Institute of Financial Studies, vol. 16(9), pages 119-175, May.
    5. Dan Anghel, 2013. "How Reliable is the Moving Average Crossover Rule for an Investor on the Romanian Stock Market?," The Review of Finance and Banking, Academia de Studii Economice din Bucuresti, Romania / Facultatea de Finante, Asigurari, Banci si Burse de Valori / Catedra de Finante, vol. 5(2), pages 089-115, December.
    6. Daniel Cunha Oliveira & Yutong Lu & Xi Lin & Mihai Cucuringu & Andre Fujita, 2024. "Causality-Inspired Models for Financial Time Series Forecasting," Papers 2408.09960, arXiv.org.
    7. Bennett, Donyetta & Mekelburg, Erik & Strauss, Jack & Williams, T.H., 2024. "Unlocking the black box of sentiment and cryptocurrency: What, which, why, when and how?," Global Finance Journal, Elsevier, vol. 60(C).
    8. Allen Yikuan Huang & Zheqi Fan, 2026. "Beyond Prompting: An Autonomous Framework for Systematic Factor Investing via Agentic AI," Papers 2603.14288, arXiv.org, revised Apr 2026.
    9. Yikuan Huang & Zheqi Fan & Kaiqi Hu & Yifan Ye, 2026. "From Hypotheses to Factors: Constrained LLM Agents in Cryptocurrency Markets," Papers 2604.26747, arXiv.org.
    10. Maung, Kenwin & Swanson, Norman R., 2025. "A survey of models and methods used for forecasting when investing in financial markets," International Journal of Forecasting, Elsevier, vol. 41(4), pages 1355-1382.
    11. Jukka Ilomaki & Hannu Laurila & Michael McAleer, 2018. "Simple Market Timing with Moving Averages," Tinbergen Institute Discussion Papers 18-048/III, Tinbergen Institute.
    12. Hsu, Po-Hsuan & Hsu, Yu-Chin & Kuan, Chung-Ming, 2010. "Testing the predictive ability of technical analysis using a new stepwise test without data snooping bias," Journal of Empirical Finance, Elsevier, vol. 17(3), pages 471-484, June.
    13. Marshall, Ben R. & Young, Martin R. & Rose, Lawrence C., 2006. "Candlestick technical trading strategies: Can they create value for investors?," Journal of Banking & Finance, Elsevier, vol. 30(8), pages 2303-2323, August.
    14. Hai Lin & Pengfei Liu & Cheng Zhang, 2023. "The trend premium around the world: Evidence from the stock market," International Review of Finance, International Review of Finance Ltd., vol. 23(2), pages 317-358, June.
    15. Doron Avramov & Guy Kaplanski & Avanidhar Subrahmanyam, 2022. "Postfundamentals Price Drift in Capital Markets: A Regression Regularization Perspective," Management Science, INFORMS, vol. 68(10), pages 7658-7681, October.
    16. Zhu, Yingzi & Zhou, Guofu, 2009. "Technical analysis: An asset allocation perspective on the use of moving averages," Journal of Financial Economics, Elsevier, vol. 92(3), pages 519-544, June.
    17. Paskalis Glabadanidis, 2014. "The Market Timing Power of Moving Averages: Evidence from US REITs and REIT Indexes," International Review of Finance, International Review of Finance Ltd., vol. 14(2), pages 161-202, June.
    18. Paskalis Glabadanidis, 2017. "Timing the Market with a Combination of Moving Averages," International Review of Finance, International Review of Finance Ltd., vol. 17(3), pages 353-394, September.
    19. Andrea Rigamonti, 2024. "Can machine learning make technical analysis work?," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 38(3), pages 399-412, September.
    20. Gagan Deep & Akash Deep & William Lamptey, 2025. "Interpretable Hypothesis-Driven Trading:A Rigorous Walk-Forward Validation Framework for Market Microstructure Signals," Papers 2512.12924, arXiv.org.

    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:zbw:jumsac:341437. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://jums.academy/en/ .

    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.