IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v65y2025i4d10.1007_s10614-024-10636-y.html
   My bibliography  Save this article

Predicting the Brazilian Stock Market with Sentiment Analysis, Technical Indicators and Stock Prices: A Deep Learning Approach

Author

Listed:
  • Arthur Emanuel de Oliveira Carosia

    (Federal Institute of São Paulo (IFSP)
    University of Campinas (UNICAMP))

  • Ana Estela Antunes Silva

    (University of Campinas (UNICAMP))

  • Guilherme Palermo Coelho

    (University of Campinas (UNICAMP))

Abstract

Recent advances in Machine Learning and, especially, Deep Learning, have led to applications of these areas in different fields of knowledge, with great emphasis on stock market prediction. There are two main approaches in the literature to predict future prices in the stock market: (1) considering historical stock prices; and (2) considering news or social media documents. Despite the recent efforts to combine these two approaches, the literature lacks works in which both strategies are performed with Deep Learning, which has led to state-of-art results in many regression and classification tasks. To overcome these limitations, in this work we proposed a new Deep Learning-based approach to predict the Brazilian stock market combining the use of historical stock prices, financial technical indicators, and financial news. The experiments were performed considering the period from 2010 to 2019 with the Ibovespa index and the historical prices of the following Brazilian companies: Banco do Brasil, Itaú, Ambev, and Gerdau, which have significant contribution to the Ibovespa index. Our results show that the combination of stock prices, technical indicators and news improves the stock market prediction considering both the prediction error and return-of-investment.

Suggested Citation

  • Arthur Emanuel de Oliveira Carosia & Ana Estela Antunes Silva & Guilherme Palermo Coelho, 2025. "Predicting the Brazilian Stock Market with Sentiment Analysis, Technical Indicators and Stock Prices: A Deep Learning Approach," Computational Economics, Springer;Society for Computational Economics, vol. 65(4), pages 2351-2378, April.
  • Handle: RePEc:kap:compec:v:65:y:2025:i:4:d:10.1007_s10614-024-10636-y
    DOI: 10.1007/s10614-024-10636-y
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-024-10636-y
    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/s10614-024-10636-y?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. Dhruhi Sheth & Manan Shah, 2023. "Predicting stock market using machine learning: best and accurate way to know future stock prices," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(1), pages 1-18, February.
    2. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    3. Liu, Qingfu & Tao, Zhenyi & Tse, Yiuman & Wang, Chuanjie, 2022. "Stock market prediction with deep learning: The case of China," Finance Research Letters, Elsevier, vol. 46(PA).
    4. Ahmet Murat Ozbayoglu & Mehmet Ugur Gudelek & Omer Berat Sezer, 2020. "Deep Learning for Financial Applications : A Survey," Papers 2002.05786, arXiv.org.
    5. Maqsood, Haider & Mehmood, Irfan & Maqsood, Muazzam & Yasir, Muhammad & Afzal, Sitara & Aadil, Farhan & Selim, Mahmoud Mohamed & Muhammad, Khan, 2020. "A local and global event sentiment based efficient stock exchange forecasting using deep learning," International Journal of Information Management, Elsevier, vol. 50(C), pages 432-451.
    6. 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. Bartosz Bieganowski & Robert 'Slepaczuk, 2024. "Supervised Autoencoders with Fractionally Differentiated Features and Triple Barrier Labelling Enhance Predictions on Noisy Data," Papers 2411.12753, arXiv.org, revised Nov 2024.
    2. Amin Aminimehr & Ali Raoofi & Akbar Aminimehr & Amirhossein Aminimehr, 2022. "A Comprehensive Study of Market Prediction from Efficient Market Hypothesis up to Late Intelligent Market Prediction Approaches," Computational Economics, Springer;Society for Computational Economics, vol. 60(2), pages 781-815, August.
    3. Bartosz Bieganowski & Robert Ślepaczuk, 2024. "Supervised Autoencoder MLP for Financial Time Series Forecasting," Working Papers 2024-03, Faculty of Economic Sciences, University of Warsaw.
    4. 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.
    5. Pedro Reis & Ana Paula Serra & Jo~ao Gama, 2025. "The Role of Deep Learning in Financial Asset Management: A Systematic Review," Papers 2503.01591, arXiv.org.
    6. Kentaro Imajo & Kentaro Minami & Katsuya Ito & Kei Nakagawa, 2020. "Deep Portfolio Optimization via Distributional Prediction of Residual Factors," Papers 2012.07245, arXiv.org.
    7. Ben Moews, 2023. "On random number generators and practical market efficiency," Papers 2305.17419, arXiv.org, revised Jul 2023.
    8. Wang, Yijun & Andreeva, Galina & Martin-Barragan, Belen, 2023. "Machine learning approaches to forecasting cryptocurrency volatility: Considering internal and external determinants," International Review of Financial Analysis, Elsevier, vol. 90(C).
    9. Mingchen Li & Kun Yang & Wencan Lin & Yunjie Wei & Shouyang Wang, 2024. "An interval constraint-based trading strategy with social sentiment for the stock market," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-31, December.
    10. Alexander Jakob Dautel & Wolfgang Karl Härdle & Stefan Lessmann & Hsin-Vonn Seow, 2020. "Forex exchange rate forecasting using deep recurrent neural networks," Digital Finance, Springer, vol. 2(1), pages 69-96, September.
    11. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    12. Delia DiaconaÅŸu & Seyed Mehdian & Ovidiu Stoica, 2023. "The Global Stock Market Reactions to the 2016 U.S. Presidential Election," SAGE Open, , vol. 13(2), pages 21582440231, June.
    13. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    14. Saâdaoui, Foued & Rabbouch, Hana, 2024. "Financial forecasting improvement with LSTM-ARFIMA hybrid models and non-Gaussian distributions," Technological Forecasting and Social Change, Elsevier, vol. 206(C).
    15. Wai Khuen Cheng & Khean Thye Bea & Steven Mun Hong Leow & Jireh Yi-Le Chan & Zeng-Wei Hong & Yen-Lin Chen, 2022. "A Review of Sentiment, Semantic and Event-Extraction-Based Approaches in Stock Forecasting," Mathematics, MDPI, vol. 10(14), pages 1-20, July.
    16. Jing Hao & Feng He & Feng Ma & Shibo Zhang & Xiaotao Zhang, 2025. "Machine learning vs deep learning in stock market investment: an international evidence," Annals of Operations Research, Springer, vol. 348(1), pages 93-115, May.
    17. Yaohu Lin & Shancun Liu & Haijun Yang & Harris Wu & Bingbing Jiang, 2021. "Improving stock trading decisions based on pattern recognition using machine learning technology," PLOS ONE, Public Library of Science, vol. 16(8), pages 1-25, August.
    18. Firuz Kamalov, 2019. "Forecasting significant stock price changes using neural networks," Papers 1912.08791, arXiv.org.
    19. Abdellilah Nafia & Abdellah Yousfi & Abdellah Echaoui, 2023. "Equity-Market-Neutral Strategy Portfolio Construction Using LSTM-Based Stock Prediction and Selection: An Application to S&P500 Consumer Staples Stocks," IJFS, MDPI, vol. 11(2), pages 1-48, March.
    20. Fabian Waldow & Matthias Schnaubelt & Christopher Krauss & Thomas Günter Fischer, 2021. "Machine Learning in Futures Markets," JRFM, MDPI, vol. 14(3), pages 1-14, March.

    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:compec:v:65:y:2025:i:4:d:10.1007_s10614-024-10636-y. 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.