Gold is widely recognized as one of the most volatile and potentially profitable financial instruments, yet it can also result in significant losses. Consequently, even small price movements can generate substantial gains or losses for traders. In the present study, we developed a machine learning model for short-term forecasting of gold prices with a minimum expected accuracy of 60%. The forecasting problem was formulated as a binary classification task. Considering sound capital management principles, a model with 60% predictive accuracy can enable a trader to achieve profitability in the financial market. Assuming an initial capital of $100 per trade, a profit of $1 per successful trade, a loss of $1 per unsuccessful trade (i.e., a risk-reward ratio of 1:1), and a model success rate of at least 60%, one could achieve a net gain of $10 or a 10% return over 100 trades—an acceptable result. After building and optimizing the model, we achieved an accuracy of 66%, approximately 6% higher than the baseline assumption. To further improve model reliability and validate predictions, we tested the model using weekly and monthly data. The model performed poorly on weekly data, likely due to the limited sample size at this time scale. In contrast, the model demonstrated acceptable accuracy on monthly data, suggesting its utility for validating daily predictions. Monthly data typically contain lower noise and volatility than other time frames, which may explain the higher accuracy observed at this scale. For comparison with previous studies, we selected two articles that predicted gold prices as a regression task and one article that predicted price direction. Results indicate that the proposed method has two key advantages over prior approaches: 1) the predictive power of deep neural networks and 2) the effectiveness of incorporating the price action methodology—particularly the inside bar technique—in forecasting gold price direction.
Suranart, K., Kiattisin, S., & Leelasantitham, A. (2014, March). Analysis of comparisons for forecasting gold price using neural network, radial basis function network and support vector regression. Proceedings of the 4th Joint International Conference on Information and Communication Technology, Electronic and Electrical Engineering (JICTEE) (pp. 1–5). IEEE. https://doi.org/10.1109/JICTEE.2014.6804078
Onsumran, C., Thammaboosadee, S., & Kiattisin, S. (2015). Gold price volatility prediction by text mining in economic indicators news (Doctoral dissertation, Mahidol University). Mahidol University Institutional Repository.
Dubey, A. D. (2016, January). Gold price prediction using support vector regression and ANFIS models. 2016 International Conference on Computer Communication and Informatics (ICCCI) (pp. 1–6). IEEE. https://doi.org/10.1109/ICCCI.2016.7479929
Sekar, K. R., Srinivasan, M., Ravidiandran, K. S., & Sethuraman, J. (2017, July). Gold price estimation using a multi-variable model. 2017 International Conference on Networks & Advances in Computational Technologies (NetACT) (pp. 364–369). IEEE. https://doi.org/10.1109/NETACT.2017.8076797
Liu, D., & Li, Z. (2017). Gold price forecasting and related influence factors analysis based on random forest. In J. Xu, M. Gen, A. Hajiyev, F. Cooke, & S. Masry (Eds.), Proceedings of the Tenth International Conference on Management Science and Engineering Management (pp. 711–723). Springer. https://doi.org/10.1007/978-981-10-1837-4_59
Al-Dhuraibi, W. A., & Ali, J. (2018, May). Using classification techniques to predict gold price movement. 2018 4th International Conference on Computer and Technology Applications (ICCTA) (pp. 127–130). IEEE. https://doi.org/10.1109/CATA.2018.8398669
Raghuram, K. S. (2020). Machine learning predictive analytics and the impact of stock market indicators in predicting gold prices. Jigsaw Academy.
Pierdzioch, C., & Risse, M. (2020). Forecasting precious metal returns with multivariate random forests. Empirical Economics, 58(3), 1167–1184. https://doi.org/10.1007/s00181-018-1558-9
Makala, D., & Li, Z. (2021, February). Prediction of gold price with ARIMA and SVM. Journal of Physics: Conference Series, 1767(1), 012022. IOP Publishing. https://doi.org/10.1088/1742-6596/1767/1/012022
Boongasame, L., Viriyaphol, P., Tassanavipas, K., & Temdee, P. (2023). Gold-price forecasting method using long short-term memory and the association rule. Journal of Mobile Multimedia, 19(1), 165–186. https://doi.org/10.13052/jmm1550-4646.1919
Hajek, P., & Novotny, J. (2022). Fuzzy rule-based prediction of gold prices using news affect. Expert Systems with Applications, 193, 116487. https://doi.org/10.1016/j.eswa.2021.116487
Baser, P., Saini, J. R., & Baser, N. (2023). Gold commodity price prediction using tree-based prediction models. International Journal of Intelligent Systems and Applications in Engineering, 11(1s), 90–96.
Gbadamosi, S. L., Nwulu, N. I., & Akinola, S. O. (2021). Exploring the effectiveness of a multilayer neural network model for gold price prediction. Proceedings of the International Conference on Artificial Intelligence and Data Engineering (AIDE).
Fariabi Yeknami,M. and Yaghoubi,Z. (2025). Short-Term Forecasting of Gold Prices in the Forex Market Using Deep Neural Networks and Price Action Strategy. Transactions on Data Analysis in Social Science, 7(1), 1-8. doi: 10.47176/TDASS.2025.1
MLA
Fariabi Yeknami,M. , and Yaghoubi,Z. . "Short-Term Forecasting of Gold Prices in the Forex Market Using Deep Neural Networks and Price Action Strategy", Transactions on Data Analysis in Social Science, 7, 1, 2025, 1-8. doi: 10.47176/TDASS.2025.1
HARVARD
Fariabi Yeknami M., Yaghoubi Z. (2025). 'Short-Term Forecasting of Gold Prices in the Forex Market Using Deep Neural Networks and Price Action Strategy', Transactions on Data Analysis in Social Science, 7(1), pp. 1-8. doi: 10.47176/TDASS.2025.1
CHICAGO
M. Fariabi Yeknami and Z. Yaghoubi, "Short-Term Forecasting of Gold Prices in the Forex Market Using Deep Neural Networks and Price Action Strategy," Transactions on Data Analysis in Social Science, 7 1 (2025): 1-8, doi: 10.47176/TDASS.2025.1
VANCOUVER
Fariabi Yeknami M., Yaghoubi Z. Short-Term Forecasting of Gold Prices in the Forex Market Using Deep Neural Networks and Price Action Strategy. TDASS, 2025; 7(1): 1-8. doi: 10.47176/TDASS.2025.1