FORECASTING GOLD PRICE DIRECTION: MACHINE LEARNING VERSUS TECHNICAL INDICATORS
PDF (English)

Ключевые слова

Gold price forecasting; XAU/USD; Machine learning; Random Forest; XGBoost; Gradient Boosting; Technical indicators; Financial forecasting.

Аннотация

Accurate forecasting of gold price movements remains a challenging task because of the complex and nonlinear nature of financial markets. This study evaluates the effectiveness of traditional technical indicators and ensemble machine learning algorithms for predicting the daily direction of XAU/USD price movements. Historical daily gold price data covering the period from July 2023 to March 2026 were collected and transformed into predictor variables, including the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), MACD Signal, Bollinger Bands, and calendar-based features. Traditional technical indicator models were first established as baseline benchmarks and subsequently compared with three ensemble learning algorithms: Random Forest, XGBoost, and Gradient Boosting. Model performance was evaluated using a five-fold TimeSeriesSplit cross-validation procedure together with an independent test dataset. The empirical results indicate that ensemble machine learning algorithms generally outperform traditional technical indicator models. Among the baseline models, Bollinger Bands achieved the highest classification accuracy (57.53%), whereas Random Forest produced the strongest overall performance among the machine learning models with an accuracy of 59.47%, followed by Gradient Boosting (55.94%) and XGBoost (54.55%). The cross-validation results further demonstrated the stability of the ensemble learning algorithms across different chronological validation periods. Overall, the findings suggest that machine learning provides a more effective approach than standalone technical indicators for forecasting the direction of gold price movements. The proposed framework contributes to the growing application of artificial intelligence in financial forecasting and offers practical decision-support insights for investors, traders, and financial analysts.

PDF (English)

Библиографические ссылки

Amini, M. and Kalantari, M. (2024) ‘Gold price prediction using deep learning models: A hybrid CNN–BiLSTM approach’, Expert Systems with Applications, 237, 121615.

Baur, D.G. and Lucey, B.M. (2010) ‘Is gold a hedge or a safe haven? An analysis of stocks, bonds and gold’, Financial Review, 45(2), pp. 217–229.

Baur, D.G. and McDermott, T.K. (2010) ‘Is gold a safe haven? International evidence’, Journal of Banking & Finance, 34(8), pp. 1886–1898.

Beckmann, J., Berger, T. and Czudaj, R. (2015) ‘Does gold act as a hedge or a safe haven? New evidence from time-varying coefficient models’, Economic Modelling, 48, pp. 16–24.

Bollinger, J. (2001) Bollinger on Bollinger Bands. New York: McGraw-Hill.

Breiman, L. (2001) ‘Random forests’, Machine Learning, 45(1), pp. 5–32.

Brock, W., Lakonishok, J. and LeBaron, B. (1992) ‘Simple technical trading rules and the stochastic properties of stock returns’, The Journal of Finance, 47(5), pp. 1731–1764.

Chen, T. and Guestrin, C. (2016) ‘XGBoost: A scalable tree boosting system’, Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 785–794.

Chong, T.T.L. and Ng, W.K. (2008) ‘Technical analysis and the London Stock Exchange: Testing the MACD and RSI rules using the FT30’, Applied Economics Letters, 15(14), pp. 1111–1114.

Fischer, T. and Krauss, C. (2018) ‘Deep learning with long short-term memory networks for financial market predictions’, European Journal of Operational Research, 270(2), pp. 654–669.

Friedman, J.H. (2001) ‘Greedy function approximation: A gradient boosting machine’, The Annals of Statistics, 29(5), pp. 1189–1232.

Ghosh, D., Levin, E.J., Macmillan, P. and Wright, R.E. (2004) ‘Gold as an inflation hedge?’, Studies in Economics and Finance, 22(1), pp. 1–25.

Gu, S., Kelly, B. and Xiu, D. (2020) ‘Empirical asset pricing via machine learning’, The Review of Financial Studies, 33(5), pp. 2223–2273.

Hoseinzade, E. and Haratizadeh, S. (2019) ‘CNN-based stock market prediction using technical indicators’, Expert Systems with Applications, 136, pp. 46–57.

Jiang, W. (2021) ‘Applications of machine learning in stock market prediction: A survey’, Journal of Physics: Conference Series, 1861(1), 012021.

Kim, K.J. (2003) ‘Financial time series forecasting using support vector machines’, Neurocomputing, 55(1–2), pp. 307–319.

Konur, O., Göçken, M. and Dosdoğru, A.T. (2024) ‘The role of technical indicators in machine learning-based financial forecasting’, Journal of Open Innovation: Technology, Market, and Complexity, 10(2), 100215.

Krauss, C., Do, X.A. and Huck, N. (2017) ‘Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500’, European Journal of Operational Research, 259(2), pp. 689–702.

Krollner, B., Vanstone, B. and Finnie, G. (2010) ‘Financial time series forecasting with machine learning techniques: A survey’, European Symposium on Artificial Neural Networks, pp. 389–394.

Lo, A.W., Mamaysky, H. and Wang, J. (2000) ‘Foundations of technical analysis: Computational algorithms, statistical inference, and empirical implementation’, The Journal of Finance, 55(4), pp. 1705–1765.

Natekin, A. and Knoll, A. (2013) ‘Gradient boosting machines, a tutorial’, Frontiers in Neurorobotics, 7(21), pp. 1–21.

Neely, C.J., Rapach, D.E., Tu, J. and Zhou, G. (2014) ‘Forecasting the equity risk premium: The role of technical indicators’, Management Science, 60(7), pp. 1772–1791.

Nguyen, T.H. (2024) ‘Forecasting gold price using technical analysis indicators’, International Journal of Financial Studies, 12(1), 15.

Patel, J., Shah, S., Thakkar, P. and Kotecha, K. (2015) ‘Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques’, Expert Systems with Applications, 42(1), pp. 259–268.

Sezer, O.B., Gudelek, M.U. and Ozbayoglu, A.M. (2020) ‘Financial time series forecasting with deep learning: A systematic literature review’, Applied Soft Computing, 90, 106181.

Wilder, J.W. (1978) New Concepts in Technical Trading Systems. Greensboro, NC: Trend Research.

Zhang, X., Aggarwal, V. and Qi, G. (2017) ‘Stock price prediction via discovering multi-frequency trading patterns’, Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 2141–2149.