Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation
Abstract
This study presents a robust machine learning framework for gold price direction prediction using non-overlapping time-series data and walk-forward validation. Unlike prior studies that report overly optimistic results due to temporal leakage and overlapping samples, this work ensures a realistic evaluation by constructing independent observations and employing a rolling validation strategy. A set of technical indicators, including RSI, MACD, and Bollinger Bands, is used as a set of predictive features. Multiple models, including Logistic Regression, Random Forest, and Support Vector Machines, are evaluated against a persistence-based baseline. Experimental results show that all machine learning models outperform the baseline, achieving an average accuracy of approximately 69% and balanced accuracy above 70%. Additionally, the Random Forest model achieves an AUC score of 0.786, indicating strong discriminative capability. Feature importance analysis highlights the significance of momentum and volatility indicators in predicting market direction. The findings demonstrate that, while Financial markets remain inherently noisy, and carefully designed validation strategies can yield reliable and interpretable predictive performance. This study contributes to the field by providing a realistic and reproducible framework that enhances the reliability of financial forecasting models and supports more informed decision-making in practical investment scenarios.
Keywords
- Gold price prediction
- Machine learning
- Time-series forecasting
- Walk-forward validation
- Non-overlapping sampling
Ethical Statement
References
- U. Yeniley, “The role of gold ETFs in market stability, price discovery, and economic dynamics during crises,” Asian J. Econ., Bus. Account., vol. 25, no. 1, pp. 60–74, 2025.
- Y. Li and Q. Du, “Oil price volatility and gold prices volatility asymmetric links with natural resources via financial market fluctuations: Implications for green recovery,” Resour. Policy, vol. 88, Art. no. 104279, Jan. 2024, doi: 10.1016/j.resourpol.2023.104279. [Online]. Available: https://doi.org/10.1016/j.resourpol.2023.104279
- J. G. Changani, “Factors influencing gold price movements: A time series analysis perspective,” SSRN, Rochester, NY, USA, SSRN Scholarly Paper 4815102, May 2, 2024, doi: 10.2139/ssrn.4815102. [Online]. Available: https://doi.org/10.2139/ssrn.4815102
- P. M. Lefatsa, S. Msomi, H. T. Muguto, L. Muguto, and P.-F. Muzindutsi, “An empirical analysis of the impact of global risk sentiment, gold prices, and interest rate differentials on exchange rate dynamics in South Africa,” Int. J. Financ. Stud., vol. 13, no. 3, Art. no. 120, 2025, doi: 10.3390/ijfs13030120. [Online]. Available: https://doi.org/10.3390/ijfs13030120
- A. Pagliaro, “Regime-aware LightGBM for stock market forecasting: A validated walk-forward framework with statistical rigor and explainable AI analysis,” Electronics, vol. 15, no. 6, Art. no. 1334, 2026, doi: 10.3390/electronics15061334. [Online]. Available: https://doi.org/10.3390/electronics15061334
- C. Bagrecha, K. Singh, G. Sharma, and P. B. Saranya, “Forecasting silver prices: A univariate ARIMA approach and a proposed model for future direction,” Miner. Econ., vol. 38, no. 1, pp. 131–141, 2025, doi: 10.1007/s13563-024-00461-y. [Online]. Available: https://doi.org/10.1007/s13563-024-00461-y
- R. P. Masini, M. C. Medeiros, and E. F. Mendes, “Machine learning advances for time series forecasting,” J. Econ. Surv., vol. 37, no. 1, pp. 76–111, 2023, doi: 10.1111/joes.12429. [Online]. Available: https://doi.org/10.1111/joes.12429
- M. Sakib, S. Mustajab, and M. Alam, “Ensemble deep learning techniques for time series analysis: A comprehensive review, applications, open issues, challenges, and future directions,” Cluster Comput., vol. 28, no. 1, Art. no. 73, 2024, doi: 10.1007/s10586-024-04684-0. [Online]. Available: https://doi.org/10.1007/s10586-024-04684-0
Details
Primary Language
English
Subjects
Artificial Intelligence (Other)
Journal Section
Research Article
Authors
Fares Dael
*
0000-0002-4546-8382
Türkiye
Publication Date
September 30, 2026
Submission Date
December 2, 2025
Acceptance Date
June 22, 2026
Published in Issue
Year 2026 Volume: 9 Number: 4