Komparasi XGBoost dan GRU+Attention untuk Prediksi IHSG Jangka Pendek Menggunakan Walk-Forward Analysis dan Metrik Finansial
DOI:
https://doi.org/10.30646/sinus.v24i2.1108Abstract
Predicting the Indonesia Composite Stock Price Index (IHSG) is challenging due to high market volatility. This study aims to compare XGBoost and GRU+Attention for short-term IHSG prediction, emphasizing realistic validation and practical profitability. Utilizing historical data from 2018 to 2026, the research employs the SEMMA framework and Walk Forward Analysis (70% training, 15% validation, 15% testing) to prevent data leakage. Unlike conventional studies relying solely on numerical errors, this research evaluates models using multidimensional metrics, including Directional Accuracy (DA), asymmetric financial metrics, and Profit and Loss (PnL) simulation. Results reveal a significant trade-off: while GRU+Attention achieved lower numerical errors (RMSE: 677.6), XGBoost demonstrated superior directional prediction with a DA of 55.33% and generated a cumulative profit of 1627.98 points. These findings conclude that directional accuracy and financial evaluation are more critical than pure numerical precision for trading strategies, establishing XGBoost as a more robust model for capturing market signals in emerging markets like the IHSG.
Keywords : XGBoost; GRU+Attention; IHSG; Walk-Forward Analysis; Directional Accuracy.
Downloads
Published
How to Cite
Issue
Section
Citation Check
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
Â

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








