skip to main content

Multivariate LSTM-Based Intraday Gold Price Prediction with Rolling Time Series Validation

1Information System, Faculty of Computer Science, Universitas Dian Nuswantoro, Indonesia

2Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Indonesia

3School of Computer Sciences, Universiti Sains Malaysia, Malaysia

Received: 26 Sep 2025; Revised: 17 Dec 2025; Accepted: 7 Jan 2026; Published: 9 Jan 2026.
Open Access Copyright (c) 2026 The authors. Published by Department of Informatics Universitas, Diponegoro
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Citation Format:
Abstract
Projecting XAUUSD (gold vs. US dollar) prices on a one-hour interval is particularly challenging due to the market's dynamic and nuanced character. To address short-term financial forecasting, an advanced deep learning methodology utilizing Long Short-Term Memory (LSTM) models was employed. Historical XAUUSD data for 2024 was resampled to hourly intervals and supplemented with SMA, RSI, MACD, and Bollinger Bands to understand the market structure better. An LSTM model was developed using open, high, low, and close prices as inputs, with the close price designated as the output target. Data normalization was performed via MinMaxScaler. The model was validated using Time Series Cross-Validation (TSCV) with a rolling origin expanding window over five splits—a sophisticated method for evaluating performance. The results demonstrated the LSTM model's capability, showcasing a mean RMSE of 9.9574, a mean MAE of 7.4411, an R² score of 0.9535, and a remarkably low MAPE of 0.3009%. These findings indicate the advanced model effectively predicts intraday prices, even while grappling with complex and nonlinear patterns, offering a powerful instrument for trading professionals and researchers to cut through market noise.
Fulltext View|Download
Keywords: LSTM; XAUUSD; Intraday price prediction; 1-Hour Timeframe; Time series cross-validation

Article Metrics:

  1. F. Grassetti, C. Mammana, and E. Michetti, “Nonlinear dynamics in real economy and financial markets: The role of dividend policies in fluctuations,” Chaos Solitons Fractals, vol. 160, p. 112191, Jul. 2022, doi: 10.1016/j.chaos.2022.112191
  2. Tianjin University of Commerce et al., “The Impact of Geopolitical Risks on Financial Development: Evidence from Emerging Markets,” J. Compet., vol. 12, no. 1, pp. 93–107, Mar. 2020, doi: 10.7441/joc.2020.01.06
  3. A. M. Ozbayoglu, M. U. Gudelek, and O. B. Sezer, “Deep learning for financial applications : A survey,” Appl. Soft Comput., vol. 93, p. 106384, Aug. 2020, doi: 10.1016/j.asoc.2020.106384
  4. Z. Fang and T. Cai, “Deep neural network modeling for financial time series analysis,” Big Data Res., vol. 41, p. 100553, Aug. 2025, doi: 10.1016/j.bdr.2025.100553
  5. A. Tholib, N. K. Agusmawati, and F. Khoiriyah, “Gold Price Prediction Using LSTM and GRU Methods,” J. Inform. Dan Tek. Elektro Terap., vol. 11, no. 3, Aug. 2023, doi: 10.23960/jitet.v11i3.3250
  6. R. Septiana et al., “Indonesian Gold Price Prediction Using CNN-LSTM Model,” Infomatek, vol. 27, no. 1, pp. 131–138, Jun. 2025, doi: 10.23969/infomatek.v27i1.24417
  7. S. R. Masud, A. Imtiaz, S. M. Hossain, and M. S. U. Miah, “A Comprehensive Approach to Gold Price Prediction Using Machine Learning and Time Series Models,” in 2025 IEEE International Conference on Interdisciplinary Approaches in Technology and Management for Social Innovation (IATMSI), Gwalior, India: IEEE, Mar. 2025, pp. 1–6. doi: 10.1109/IATMSI64286.2025.10984927
  8. T. G. Lasijan, R. Santoso, and A. R. Hakim, “World Gold Price Prediction Using The Long-Short Term Memory Method,” J. Gaussian, vol. 12, no. 2, pp. 287–295, Jul. 2023, doi: 10.14710/j.gauss.12.2.287-295
  9. M. F. Julianto, M. Iqbal, W. F. Hidayat, and Y. Malau, “Comparison of The Application of Deep Learning Algorithm in Gold Price Prediction,” INTI Nusa Mandiri, vol. 19, no. 1, pp. 71–76, Aug. 2024, doi: 10.33480/inti.v19i1.5559
  10. M. R. Pahlevi, “Forex Price Prediction Using Long Short-Term Memory Algorithm,” JNANALOKA, pp. 69–76, Sep. 2023, doi: 10.36802/jnanaloka.2022.v3-no2-69-76
  11. Z. Rusdi, C. Lubis, and V. G. Tjandra, “Currency Exchange Prediction Using The Long Short Term Memory (LSTM) Method Based on Attention,” Comput. J. Comput. Sci. Inf. Syst., vol. 5, no. 2, pp. 45–51, Dec. 2021, doi: 10.24912/computatio.v5i2.13117
  12. H. M. Zangana and S. R. Obeyd, “Deep Learning-based Gold Price Prediction: A Novel Approach using Time Series Analysis,” SISTEMASI, vol. 13, no. 6, pp. 2581–2591, Nov. 2024, doi: 10.32520/stmsi.v13i6.4651
  13. N. H. Setiawan and Z. Zulkarnain, “Forecasting Palm Oil Production Using Long Short-Term Memory (LSTM) With Time Series Cross Validation (TSCV),” Int. J. Soc. Serv. Res., vol. 4, no. 05, pp. 1237–1251, May 2024, doi: 10.46799/ijssr.v4i05.780
  14. “Download Free Forex Historical Data – HistData.com.” Accessed: Sep. 20, 2025. [Online]. Available: https://www.histdata.com/download-free-forex-historical-data/
  15. S. Darma, “Strategi Scalping Emas dengan High-Low Trading,” TPFx. Accessed: Sep. 23, 2025. [Online]. Available: https://tpfx.co.id/jurnal/strategi-scalping-emas-dengan-high-low-trading/
  16. W. S. Ahmed, M. Sohaib, J. Maqsood, and A. Siddiqui, “Do intraday week effect in currencies hourly trading reflect leverage and asymmetric anomalies? Policy implications for traders,” J. Chin. Econ. Foreign Trade Stud., vol. 14, no. 3, pp. 240–256, Oct. 2021, doi: 10.1108/JCEFTS-07-2020-0034
  17. T. G. Ludwig and D. A. L. Neske, “TECHNICAL AND FUNDAMENTAL ANALYSIS,” Sci. J. Appl. Soc. Clin. Sci., vol. 4, no. 22, pp. 2–4, Oct. 2024, doi: 10.22533/at.ed.2164222430106
  18. A. Primawati and A. A. Trinoto, “Prophet Performance Evaluation for Gold Futures Price Prediction,” Fakt. Exacta, vol. 17, no. 1, May 2024, doi: 10.30998/faktorexacta.v17i1.22013
  19. A. M. Priyatno, L. Ningsih, and M. Noor, “Harnessing Machine Learning for Stock Price Prediction with Random Forest and Simple Moving Average Techniques,” J. Eng. Sci. Appl., vol. 1, no. 1, pp. 1–8, Mar. 2024, doi: 10.69693/jesa.v1i1.1
  20. M. A. Haq et al., “Analysis of environmental factors using AI and ML methods,” Sci. Rep., vol. 12, no. 1, p. 13267, Aug. 2022, doi: 10.1038/s41598-022-16665-7
  21. P. St-Aubin and B. Agard, “Precision and Reliability of Forecasts Performance Metrics,” Forecasting, vol. 4, no. 4, pp. 882–903, Oct. 2022, doi: 10.3390/forecast4040048

Last update:

No citation recorded.

Last update: 2026-01-09 14:34:53

No citation recorded.