Research Article

Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation

Volume: 9 Number: 4 September 30, 2026

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

Ethical Statement

It is declared that during the preparation process of this study, scientific and ethical principles were followed, and all the studies benefited from are stated in the bibliography.

References

  1. 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.
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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

Publication Date

September 30, 2026

Submission Date

December 2, 2025

Acceptance Date

June 22, 2026

Published in Issue

Year 2026 Volume: 9 Number: 4

APA
Dael, F. (2026). Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation. Sakarya University Journal of Computer and Information Sciences, 9(4), 1209-1219. https://doi.org/10.35377/saucis...1834952
AMA
1.Dael F. Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation. SAUCIS. 2026;9(4):1209-1219. doi:10.35377/saucis.1834952
Chicago
Dael, Fares. 2026. “Gold Price Direction Prediction Using Machine Learning With Walk-Forward Validation”. Sakarya University Journal of Computer and Information Sciences 9 (4): 1209-19. https://doi.org/10.35377/saucis. 1834952.
EndNote
Dael F (September 1, 2026) Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation. Sakarya University Journal of Computer and Information Sciences 9 4 1209–1219.
IEEE
[1]F. Dael, “Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation”, SAUCIS, vol. 9, no. 4, pp. 1209–1219, Sept. 2026, doi: 10.35377/saucis...1834952.
ISNAD
Dael, Fares. “Gold Price Direction Prediction Using Machine Learning With Walk-Forward Validation”. Sakarya University Journal of Computer and Information Sciences 9/4 (September 1, 2026): 1209-1219. https://doi.org/10.35377/saucis. 1834952.
JAMA
1.Dael F. Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation. SAUCIS. 2026;9:1209–1219.
MLA
Dael, Fares. “Gold Price Direction Prediction Using Machine Learning With Walk-Forward Validation”. Sakarya University Journal of Computer and Information Sciences, vol. 9, no. 4, Sept. 2026, pp. 1209-1, doi:10.35377/saucis. 1834952.
Vancouver
1.Fares Dael. Gold Price Direction Prediction Using Machine Learning with Walk-Forward Validation. SAUCIS. 2026 Sep. 1;9(4):1209-1. doi:10.35377/saucis. 1834952

 

INDEXING & ABSTRACTING & ARCHIVING

 

31045 31044   Anadolu Türk Eğitim Dergisi  31047 

31043 28939 28938 34240
 

 

29070    The papers in this journal are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License