IDEAS home Printed from https://ideas.repec.org/a/gam/jecomi/v13y2024i1p6-d1558024.html
   My bibliography  Save this article

Integrating Macroeconomic and Technical Indicators into Forecasting the Stock Market: A Data-Driven Approach

Author

Listed:
  • Saima Latif

    (Department of Management Sciences, COMSATS University, Park Road, Islamabad 45550, Pakistan)

  • Faheem Aslam

    (Department of Management Sciences, COMSATS University, Park Road, Islamabad 45550, Pakistan
    School of Business Administration (SBA), Al Akhawayn University, Ifrane 53003, Morocco
    VALORIZA—Research Center for Endogenous Resource Valorization, 7300-555 Portalegre, Portugal)

  • Paulo Ferreira

    (VALORIZA—Research Center for Endogenous Resource Valorization, 7300-555 Portalegre, Portugal
    Polytechnic Institute of Portalegre, 7300-110 Portalegre, Portugal
    CEFAGE-UE, IIFA, University of Évora, Largo dos 2 Colegiais, 7000-809 Évora, Portugal)

  • Sohail Iqbal

    (School of Electrical Engineering and Computer Science (SEECS), National University of Sciences and Technology (NUST), Islamabad 44000, Pakistan)

Abstract

Forecasting stock markets is challenging due to the influence of various internal and external factors compounded by the effects of globalization. This study introduces a data-driven approach to forecast S&P 500 returns by incorporating macroeconomic indicators including gold and oil prices, the volatility index, economic policy uncertainty, the financial stress index, geopolitical risk, and shadow short rate, with ten technical indicators. We propose three hybrid deep learning models that sequentially combine convolutional and recurrent neural networks for improved feature extraction and predictive accuracy. These models include the deep belief network with gated recurrent units, the LeNet architecture with gated recurrent units, and the LeNet architecture combined with highway networks. The results demonstrate that the proposed hybrid models achieve higher forecasting accuracy than the single deep learning models. This outcome is attributed to the complementary strengths of convolutional networks in feature extraction and recurrent networks in pattern recognition. Additionally, an analysis using the Shapley method identifies the volatility index, financial stress index, and economic policy uncertainty as the most significant predictors, underscoring the effectiveness of our data-driven approach. These findings highlight the substantial impact of contemporary uncertainty factors on stock markets, emphasizing their importance in studies analyzing market behaviour.

Suggested Citation

  • Saima Latif & Faheem Aslam & Paulo Ferreira & Sohail Iqbal, 2024. "Integrating Macroeconomic and Technical Indicators into Forecasting the Stock Market: A Data-Driven Approach," Economies, MDPI, vol. 13(1), pages 1-28, December.
  • Handle: RePEc:gam:jecomi:v:13:y:2024:i:1:p:6-:d:1558024
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7099/13/1/6/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7099/13/1/6/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Dario Caldara & Matteo Iacoviello, 2022. "Measuring Geopolitical Risk," American Economic Review, American Economic Association, vol. 112(4), pages 1194-1225, April.
    2. Ghulam Sarwar, 2012. "Intertemporal relations between the market volatility index and stock index returns," Applied Financial Economics, Taylor & Francis Journals, vol. 22(11), pages 899-909, June.
    3. Turan G. Bali & Stephen J. Brown & Yi Tang, 2022. "Disagreement in economic forecasts and equity returns: risk or mispricing?," China Finance Review International, Emerald Group Publishing Limited, vol. 13(3), pages 309-341, August.
    4. Black, Fischer, 1995. "Interest Rates as Options," Journal of Finance, American Finance Association, vol. 50(5), pages 1371-1376, December.
    5. Edda Claus & Iris Claus & Leo Krippner, 2014. "Asset markets and monetary policy shocks at the zero lower bound," Reserve Bank of New Zealand Discussion Paper Series DP2014/03, Reserve Bank of New Zealand.
    6. Christos Bouras & Christina Christou & Rangan Gupta & Tahir Suleman, 2020. "Geopolitical Risks, Returns, and Volatility in Emerging Stock Markets: Evidence from a Panel GARCH Model," Emerging Markets Finance and Trade, Taylor & Francis Journals, vol. 55(8), pages 1841-1856, July.
    7. Aye, Goodness C. & Balcilar, Mehmet & Demirer, Riza & Gupta, Rangan, 2018. "Firm-level political risk and asymmetric volatility," The Journal of Economic Asymmetries, Elsevier, vol. 18(C), pages 1-1.
    8. Vanshu Mahajan & Sunil Thakan & Aashish Malik, 2022. "Modeling and Forecasting the Volatility of NIFTY 50 Using GARCH and RNN Models," Economies, MDPI, vol. 10(5), pages 1-20, April.
    9. Ma, Chenyao & Yan, Sheng, 2022. "Deep learning in the Chinese stock market: The role of technical indicators," Finance Research Letters, Elsevier, vol. 49(C).
    10. Scott R. Baker & Nicholas Bloom & Steven J. Davis, 2016. "Measuring Economic Policy Uncertainty," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 131(4), pages 1593-1636.
    11. Vera Ivanyuk, 2022. "Methodology for Constructing an Experimental Investment Strategy Formed in Crisis Conditions," Economies, MDPI, vol. 10(12), pages 1-19, December.
    12. Fadekemi Chidinma Adeloye & Olayinka Olawoyin & Chinaemerem Daniel, 2024. "Economic Policy Uncertainty and Financial Markets in the United State," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 8(6), pages 998-1016, June.
    13. Chiang, Thomas C., 2019. "Economic policy uncertainty, risk and stock returns: Evidence from G7 stock markets," Finance Research Letters, Elsevier, vol. 29(C), pages 41-49.
    14. Mensi, Walid & Hammoudeh, Shawkat & Reboredo, Juan Carlos & Nguyen, Duc Khuong, 2014. "Do global factors impact BRICS stock markets? A quantile regression approach," Emerging Markets Review, Elsevier, vol. 19(C), pages 1-17.
    15. Leo Krippner, 2015. "A comment on Wu and Xia (2015), and the case for two-factor Shadow Short Rates," CAMA Working Papers 2015-48, Centre for Applied Macroeconomic Analysis, Crawford School of Public Policy, The Australian National University.
    16. Claus, Edda & Claus, Iris & Krippner, Leo, 2018. "Asset market responses to conventional and unconventional monetary policy shocks in the United States," Journal of Banking & Finance, Elsevier, vol. 97(C), pages 270-282.
    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. Amirali Nasouri, 2025. "The Impact of Geopolitical Risks on Equity Markets and Financial Stress: A Comparative Analysis of Emerging and Advanced Economies," International Journal of Economics & Business Administration (IJEBA), International Journal of Economics & Business Administration (IJEBA), vol. 0(1), pages 30-41.
    2. Das, Debojyoti & Kannadhasan, M. & Bhattacharyya, Malay, 2019. "Do the emerging stock markets react to international economic policy uncertainty, geopolitical risk and financial stress alike?," The North American Journal of Economics and Finance, Elsevier, vol. 48(C), pages 1-19.
    3. Szczygielski, Jan Jakub & Charteris, Ailie & Obojska, Lidia & Brzeszczyński, Janusz, 2025. "Energy in turmoil: Industry resilience to uncertainty during the global energy crisis," Applied Energy, Elsevier, vol. 389(C).
    4. Layal Mansour-Ichrakieh, 2021. "The Impact of Israeli and Saudi Arabian Geopolitical Risks on the Lebanese Financial Market," JRFM, MDPI, vol. 14(3), pages 1-24, February.
    5. Hong, Yun & Zhang, Rushan & Zhang, Feipeng, 2024. "Time-varying causality impact of economic policy uncertainty on stock market returns: Global evidence from developed and emerging countries," International Review of Financial Analysis, Elsevier, vol. 91(C).
    6. Costantini, Mauro & Sousa, Ricardo M., 2022. "What uncertainty does to euro area sovereign bond markets: Flight to safety and flight to quality," Journal of International Money and Finance, Elsevier, vol. 122(C).
    7. Salah A. Nusair & Jamal A. Al-Khasawneh, 2023. "Changes in oil price and economic policy uncertainty and the G7 stock returns: evidence from asymmetric quantile regression analysis," Economic Change and Restructuring, Springer, vol. 56(3), pages 1849-1893, June.
    8. Segnon, Mawuli & Gupta, Rangan & Wilfling, Bernd, 2024. "Forecasting stock market volatility with regime-switching GARCH-MIDAS: The role of geopolitical risks," International Journal of Forecasting, Elsevier, vol. 40(1), pages 29-43.
    9. Apostolakis, George N. & Giannellis, Nikolaos, 2024. "Monetary policy and uncertainty spillovers: Evidence from a wavelet and frequency connectedness analysis," International Review of Financial Analysis, Elsevier, vol. 95(PC).
    10. Lealand Morin & Ying Shang, 2021. "Federal Reserve policy after the zero lower bound: an indirect inference approach," Empirical Economics, Springer, vol. 60(4), pages 2105-2124, April.
    11. French, Joseph J. & Shin, Seungho & Gurdgiev, Constantin & Naka, Atsuyuki, 2024. "Uncertainty and international fund flows: A cross-country analysis," International Review of Financial Analysis, Elsevier, vol. 94(C).
    12. Nonejad, Nima, 2021. "Predicting the return on the spot price of crude oil out-of-sample by conditioning on news-based uncertainty measures: Some new empirical results," Energy Economics, Elsevier, vol. 104(C).
    13. Boufateh, Talel & Saadaoui, Zied & Jiao, Zhilun, 2025. "On the time-varying responses of Fintech stock returns to geopolitical, financial and market sentiment shocks," The Quarterly Review of Economics and Finance, Elsevier, vol. 101(C).
    14. Alqahtani, Abdullah & Klein, Tony, 2021. "Oil price changes, uncertainty, and geopolitical risks: On the resilience of GCC countries to global tensions," Energy, Elsevier, vol. 236(C).
    15. Mohammad Enamul Hoque & Mohd Azlan Shah Zaidi & M. Kabir Hassan, 2021. "Geopolitical Uncertainties and Malaysian Stock Market Returns: Do Market Conditions Matter?," Mathematics, MDPI, vol. 9(19), pages 1-16, September.
    16. Wen, Fenghua & Shui, Aojie & Cheng, Yuxiang & Gong, Xu, 2022. "Monetary policy uncertainty and stock returns in G7 and BRICS countries: A quantile-on-quantile approach," International Review of Economics & Finance, Elsevier, vol. 78(C), pages 457-482.
    17. Chiang, Thomas C., 2025. "The effect of climate policy uncertainty and induced risks on US aggregate and sectoral stock returns," Research in International Business and Finance, Elsevier, vol. 76(C).
    18. Costola, Michele & Lorusso, Marco, 2022. "Spillovers among energy commodities and the Russian stock market," Journal of Commodity Markets, Elsevier, vol. 28(C).
    19. Julius Loermann, 2018. "The Impact of CHF/EUR Exchange Rate Uncertainty on Swiss Exports to the Eurozone: Evidence from a Threshold VAR," FIW Working Paper series 189, FIW, revised Feb 2019.
    20. Xiao, Jihong & Jiang, Jiajie & Zhang, Yaojie, 2024. "Policy uncertainty, investor sentiment, and good and bad volatilities in the stock market: Evidence from China," Pacific-Basin Finance Journal, Elsevier, vol. 84(C).

    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:jecomi:v:13:y:2024:i:1:p:6-:d:1558024. 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: 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.