Hybrid ML and Rule-Based Gold Trading System
full title:
A Hybrid Machine Learning and Rule-Based Decision Support System for Short-Term Trading: A Case Study on XAUUSD #
Author: Mohammad Mahdi Masoumian (Babol Noshirvani University of Technology), Rasoul Shafaei (K. N. Toosi University of Technology)
Publisher/Release date: Posted: 17 Aug 2026 | Date Written: August 13, 2026
Abstract
Financial markets, characterized by high liquidity and rapid capital flows, require reliable predictive tools to support trading decisions and risk management. This study evaluates several machine learning algorithms to identify a robust short-term price forecasting model and, based on these findings, develops a rule-based decision-support system for algorithmic trading. Using XGBoost with tailored feature engineering, the proposed model forecasts five-minute gold (XAU/USD) price movements over a one-hour horizon, achieving a root mean square error (RMSE) of 3.49 and a mean absolute percentage error (MAPE) of 0.11%. When operationalized as a complete trading strategy governed by a fixed-dollar-risk position-sizing rule, the system produced a cumulative net return of 130.62% ($13,062.38 profit on a $10,000 initial capital) over the January 2021-October 2025 period, with Monte Carlo simulation indicating a mean annualized return of approximately 30.7% and an 89% probability of annual profitability. These results highlight the model’s effectiveness for data-driven investment and automated trading applications.
Keywords: Algorithmic Trading, Machine Learning, Financial Markets, Price Prediction
citation:
Masoumian, M. M., & Shafaei, R. (2026). A Hybrid Machine Learning and Rule-Based Decision Support System for Short-Term Trading: A Case Study on XAUUSD. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.7279718