Macroeconomic Feature Injection on XGBoost vs. TimesFM Zero-Shot for XAU/USD Intraday Forecasting
DOI:
https://doi.org/10.62411/tc.v25i4.17683Abstract
High-frequency financial time series forecasting is severely challenged by concept drift, where macroeconomic shock events abruptly disrupt historical data distribution patterns. This study evaluates the effectiveness of exogenous macroeconomic feature matrix injection into XGBoost against the zero-shot forecasting capability of the Time Series Foundation Model (TimesFM). Using XAU/USD 15-minute resolution data (2021–2025), aligned via a strict Point-in-Time (PiT) methodology with a macroeconomic deviation matrix, three model scenarios are evaluated: baseline XGBoost (A1), macroeconomic-injected XGBoost (A2), and TimesFM (B). Results demonstrate that A2 achieved the highest Event-Driven Mean Directional Accuracy (MDA) of 57.84%, significantly outperforming A1 (49.02%). SHapley Additive exPlanations (SHAP) analysis validates that the algorithm dynamically prioritizes macroeconomic deviation features during shock events. However, regularization-induced shrinkage constrains absolute magnitude predictions despite correct directional outputs. TimesFM, while unable to minimize absolute errors at intraday resolution, demonstrates promising directional recognition with an MDA of 56.86%. Keywords - XGBoost; TimesFM; Zero-Shot Forecasting; XAU/USD Intraday Forecasting; Macroeconomic Feature InjectionDownloads
Published
Issue
Section
License
Copyright (c) 2026 Jason Daniel Tanubrata, Nugroho Budhisantosa, Binastya Anggara Sekti, Theodora Maria Putri Komul

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License Terms
All articles published in Techno.COM Journal are licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). This means:
1. Attribution
Readers and users are free to:
-
Share – Copy and redistribute the material in any medium or format.
-
Adapt – Remix, transform, and build upon the material.
As long as proper credit is given to the original work by citing the author(s) and the journal.
2. Non-Commercial Use
-
The material cannot be used for commercial purposes.
-
Commercial use includes selling the content, using it in commercial advertising, or integrating it into products/services for profit.
3. Rights of Authors
-
Authors retain copyright and grant Techno.COM Journal the right to publish the article.
-
Authors can distribute their work (e.g., in institutional repositories or personal websites) with proper acknowledgment of the journal.
4. No Additional Restrictions
-
The journal cannot apply legal terms or technological measures that restrict others from using the material in ways allowed by the license.
5. Disclaimer
-
The journal is not responsible for how the published content is used by third parties.
-
The opinions expressed in the articles are solely those of the authors.
For more details, visit the Creative Commons License Page:
? https://creativecommons.org/licenses/by-nc/4.0/









