Volume 5 • Issue 2 • PP: 55 –73 • 2025
Multi-Horizon Gold Price Forecasting and Its Implications for Financial Markets
Open Access & Copyright
© 2025 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Abstract
Accurate forecasting of gold prices remains a critical challenge in financial markets due to the nonlinear, nonstationary, and regime-dependent nature of commodity price dynamics, particularly for gold quoted against the US dollar (XAU/USD), which plays a central role as a safe-haven asset, inflation hedge, and portfolio diversifier. Motivated by the growing limitations of traditional econometric and manually tuned machine learning approaches in handling long-horizon, multi-timeframe financial data, this study proposes a robust forecasting framework that integrates deep learning with metaheuristic optimization. The main contribution of this work lies in the systematic combination of a Deep Pyramid Recurrent Neural Network (DPRNN) with advanced metaheuristic algorithms for automated hyperparameter optimization, with particular emphasis on Greylag Goose Optimization (GGO), alongside other state-of-the-art optimizers. Using historical XAU/USD data spanning from 2004 to February 2025 across multiple temporal resolutions, baseline model evaluation demonstrates that DPRNN outperforms other deep learning architectures prior to optimization, achieving a Mean Squared Error (MSE) of 0.0589, Root Mean Squared Error (RMSE) of 0.2426, and coefficient of determination (R2) of 0.79. Following optimization, the proposed GGO-optimized DPRNN framework yields a substantial performance enhancement, reducing the MSE to 2.05 × 10−5 and RMSE to 4.52 × 10−3, while simultaneously increasing the correlation coefficient to 0.987 and R2 to 0.983, with near-perfect agreement metrics reflected by a Nash–Sutcliffe Efficiency of 0.986 and Willmott Index of 0.988. These results confirm the effectiveness of GGO in navigating complex hyperparameter search spaces and significantly improving predictive accuracy and stability. From an economic and financial perspective, the findings underscore the practical value of metaheuristic-optimized deep learning models for enhancing gold price forecasting, supporting more informed investment decisions, improved risk management, and greater market efficiency in volatile and uncertain financial environments.
Keywords
References
[1] M. Ryan, S. Corbet, and L. Oxley, “Is gold always a safe haven?” Finance Research Letters, vol. 64, p. 105438, 2024.
[2] I. Özkal, I. A. Özkan, and F. Ba¸sçiftçi, “Metaverse token price forecasting using artificial neural networks (ANNs) and adaptive neural fuzzy inference system (ANFIS),” Neural Computing and Applications, vol. 36, no. 7, pp. 3267–3290, 2024.
[3] H. Kinateder, I. Gurrib, and T. Choudhury, “Navigating crises: Gold’s role as a safe haven for U.S. sectors,” Finance Research Letters, vol. 69, p. 106210, 2024.
[4] W. Mensi, D. Maitra, R. Selmi, and X. V. Vo, “Extreme dependencies and spillovers between gold and stock markets: Evidence from MENA countries,” Financial Innovation, vol. 9, p. 47, 2023.
[5] H. Ben Ameur, F. Jamaani, and M. N. A. Abu Alfoul, “Examining the safe-haven and hedge capabilities of gold and cryptocurrencies: A GARCH and regression quantiles approach in geopolitical and market extremes,” Heliyon, vol. 10, no. 22, p. e40400, 2024.
[6] K. N. Konstantakis, P. Xidonas, P. G. Michaelides, and S. Goutte, “Gold and COVID-19: Uncovering the safe haven hypothesis with dynamic MSR modeling,” International Review of Financial Analysis, vol. 89, p. 102858, 2023.
[7] F. Yu, “Macroeconomic information, global economic policy uncertainty and gold futures return predictability,” Finance Research Letters, vol. 55, p. 103789, 2023.
[8] E. Feder-Sempach, P. Szczepocki, and J. Bogoł˛ebska, “Global uncertainty and potential shelters: Gold, bitcoin, and currencies as weak and strong safe havens for main world stock markets,” Financial Innovation, vol. 10, p. 67, 2024.
[9] U. A. Sheikh, M. Asad, Z. Ahmed, and U. Mukhtar, “Asymmetrical relationship between oil prices, gold prices, exchange rate, and stock prices during global financial crisis 2008: Evidence from pakistan,” Cogent Economics & Finance, vol. 8, no. 1, p. 1757802, 2020.
[10] O.-C. Chuang, R. Gupta, C. Pierdzioch, and B. Shu, “Financial uncertainty and gold market volatility: Evidence from a GARCH-MIDAS approach with variable selection,” Econometrics, vol. 12, no. 4, p. 38, 2024.
[11] A. A. Salisu, R. Gupta, S. Karmakar, and S. Das, “Forecasting output growth of advanced economies over eight centuries: The role of gold market volatility as a proxy of global uncertainty,” Resources Policy, vol. 75, p. 102527, 2022.
[12] A. Ampountolas, “Enhancing forecasting accuracy in commodity and financial markets: Insights from GARCH and SVR models,” International Journal of Financial Studies, vol. 12, no. 3, p. 59, 2024.
[13] F. Wang, J. Chang, W. Zuo, and W. Zhou, “Research on efficiency and multifractality of gold market under major events,” Fractal and Fractional, vol. 8, no. 8, p. 488, 2024.
[14] R. Gupta, S. Karmakar, and C. Pierdzioch, “Safe havens, machine learning, and the sources of geopolitical risk: A forecasting analysis using over a century of data,” Computational Economics, vol. 64, no. 1, pp. 487–513, 2024.
[15] A. A. Salisu, R. Gupta, S. Ntyikwe, and R. Demirer, “Gold and the global financial cycle,” Quantitative Finance and Economics, vol. 7, no. 3, pp. 475–490, 2023.
[16] P. Foroutan and S. Lahmiri, “Deep learning systems for forecasting the prices of crude oil and precious metals,” Financial Innovation, vol. 10, no. 1, p. 111, 2024.
[17] N. P. J. R. Dewi, N. L. W. S. R. Ginantra, I. W. A. S. Darma, and I. G. A. Indrawan, “Application of long short-term memory (LSTM) and gated recurrent unit (GRU) algorithm in gold price prediction,” Proceedings of the 2023 11th International Conference on Cyber and IT Service Management (CITSM), pp. 1–6, 2023.
[18] R. Popli, I. Kansal, R. Kumar, V. Khullar, P. Sharma, and D. Parsad, “Gold price prediction in stock exchange using LSTM and Bi-LSTM multivariate deep learning approaches,” Computational Intelligence and Mathematical Applications, pp. 1–5, 2024.
[19] N. M. Trieu and N. T. Thinh, “A robust prediction for gold price using heterogeneous ensemble learning,” Proceedings of the 2024 13th International Conference on Control, Automation and Information Sciences (ICCAIS), pp. 1–5, 2024.
[20] K. N. TP and S. Sultana, “Advanced techniques for daily gold price forecasting in india through statistical analysis and predictive modeling,” Proceedings of the 2024 8th International Conference on Computational System and Information Technology for Sustainable Solutions (CSITSS), pp. 1–6, 2024.
[21] K. He, Q. Yang, L. Ji, J. Pan, and Y. Zou, “Financial time series forecasting with the deep learning ensemble model,” Mathematics, vol. 11, no. 4, p. 1054, 2023.
[22] A. H. Baradaran, M. Bohlouli, and M. R. J. Motlagh, “Decoding tomorrow’s gold prices: A comparative study of GRU and CNN-LSTM in the iranian market,” Proceedings of the 2024 10th International Conference on Web Research (ICWR), pp. 329–334, 2024.
[23] M. M. Billah and S. Das, “Analysis and prediction of gold price using CNN and Bi-GRU based neural network model,” Proceedings of the 2021 24th International Conference on Computer and Information Technology (ICCIT), pp. 1–6, 2021.
[24] A. Bouteska, M. Z. Abedin, P. Hajek, and K. Yuan, “Cryptocurrency price forecasting—a comparative analysis of ensemble learning and deep learning methods,” International Review of Financial Analysis, vol. 92, p. 103055, 2024.
[25] R. Corizzo and J. Rosen, “Stock market prediction with time series data and news headlines: A stacking ensemble approach,” Journal of Intelligent Information Systems, vol. 62, no. 1, pp. 27–56, 2024.
[26] S. Anbaee Farimani, M. V. Jahan, and A. Milani Fard, “An adaptive multimodal learning model for financial market price prediction,” IEEE Access, vol. 12, pp. 121 846–121 863, 2024.
[27] L. Ming, P. Yang, and Q. Liu, “Is gold a hedge or a safe haven against stock markets? evidence from conditional comoments,” Journal of Empirical Finance, vol. 74, p. 101439, 2023.
[28] S. Tarchella, R. Khalfaoui, and S. Hammoudeh, “The safe haven, hedging, and diversification properties of oil, gold, and cryptocurrency for the G7 equity markets: Evidence from the pre- and post-COVID-19 periods,” Research in International Business and Finance, vol. 67, p. 102125, 2024.
[29] B. Jia, H. Wu, and K. Guo, “Chaos theory meets deep learning: A new approach to time series forecasting,” Expert Systems with Applications, vol. 255, p. 124533, 2024.
[30] M. Sari, S. Duran, H. Kutlu, B. Guloglu, and Z. Atik, “Various optimized machine learning techniques to predict agricultural commodity prices,” Neural Computing and Applications, vol. 36, no. 19, pp. 11 439–11 459, 2024.
Cite This Article
Choose your preferred format
Publisher's Note
The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.