PERFORMANCE ANALYSIS OF GRADIENT BOOSTING MODELS VARIANTS IN PREDICTING THE DIRECTION OF STOCK CLOSING PRICES ON THE INDONESIA STOCK EXCHANGE
Abstract
Accurately predicting stock market trends remains a significant challenge for investors due to its dynamic nature. This study explores the performance of Gradient Boosting models, including XGBoost, XGBoost Random Forest, CatBoost, and Gradient Boosting Scikit-Learn, in predicting stock market trends such as sideways movement, uptrends, downtrends, and volatility. Using four datasets from the Indonesia Stock Exchange, the research integrates technical, fundamental, and sentiment data, encompassing 37 features. Modeling and testing are conducted using Orange tools and Python, with performance evaluated through metrics such as Mean Absolute Percentage Error (MAPE), R-squared (R²), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE). Results indicate that XGBoost and XGBoost Random Forest consistently outperform other models in predicting stock price movements. These findings highlight the potential of Gradient Boosting models in providing accurate and reliable predictions, offering valuable insights for investors, financial analysts, and researchers to enhance investment strategies and adapt to market fluctuations effectively.
Downloads
References
Melina, Sukono, H. Napitupulu, and N. Mohamed, “A CONCEPTUAL MODEL OF INVESTMENT-RISK PREDICTION IN THE STOCK MARKET USING EXTREME VALUE THEORY WITH MACHINE LEARNING: A SEMISYSTEMATIC LITERATURE REVIEW,” Multidisciplinary Digital Publishing Institute (MDPI), Mar. 01, 2023, doi: 10.3390/risks11030060.
M. Ali, D. M. Khan, H. M. Alshanbari, and A. A. A. H. El-Bagoury, “PREDICTION OF COMPLEX STOCK MARKET DATA USING AN IMPROVED HYBRID EMD-LSTM MODEL,” Applied Sciences (Switzerland), vol. 13, no. 3, Feb. 2023, doi: 10.3390/app13031429.
M. Wątorek, J. Kwapień, and S. Drożdż, “CRYPTOCURRENCIES ARE BECOMING PART OF THE WORLD GLOBAL FINANCIAL MARKET,” Entropy, vol. 25, no. 2, Feb. 2023, doi: 10.3390/e25020377.
N. U. Devi and R. Mohan, “A BLENDED SOFT-COMPUTING MODEL FOR STOCK-VALUE PREDICTION,” Jordanian Journal of Computers and Information Technology (JJCIT), vol. 09, no. 3, Sep. 2023, doi: 10.5455/jjcit.71-1683995072.
R. Abraham et al., “FORECASTING A STOCK TREND USING GENETIC ALGORITHM AND RANDOM FOREST,” Journal of Risk and Financial Management, vol. 15, no. 5, May 2022, doi: 10.3390/jrfm15050188.
J. M. T. Wu, Z. Li, N. Herencsar, B. Vo, and J. C. W. Lin, “A GRAPH-BASED CNN-LSTM STOCK PRICE PREDICTION ALGORITHM WITH LEADING INDICATORS,” Multimedia Systems, Jun. 2023, pp. 1751–1770. doi: 10.1007/s00530-021-00758-w.
C. Yuan, X. Ma, H. Wang, C. Zhang, and X. Li, “COVID19-MLSF: A MULTI-TASK LEARNING-BASED STOCK MARKET FORECASTING FRAMEWORK DURING THE COVID-19 PANDEMIC,” Expert System Application, vol. 217, May 2023, doi: 10.1016/j.eswa.2023.119549.
Y. F. Zhang and M. Umair, “EXAMINING THE INTERCONNECTEDNESS OF GREEN FINANCE: AN ANALYSIS OF DYNAMIC SPILLOVER EFFECTS AMONG GREEN BONDS, RENEWABLE ENERGY, AND CARBON MARKETS,” Environmental Science and Pollution Research, vol. 30, no. 31, pp. 77605–77621, Jul. 2023, doi: 10.1007/s11356-023-27870-w.
D. Maulana, A. Sofro, D. Ariyanto, R. Romadhonia, A. Oktaviarina, and D. Purnama, “STOCK PRICE PREDICTION AND SIMULATION USING GEOMETRIC BROWNIAN MOTION-KALMAN FILTER- A COMPARISON BETWEEN KALMAN FILTER ALGORITHMS,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 19, no. 1, pp. 0097–0106, Mar. 2025, doi: 10.30598/barekengvol19iss1pp0097-0106.
S. Alves Basilio and L. Goliatt, “GRADIENT BOOSTING HYBRIDIZED WITH EXPONENTIAL NATURAL EVOLUTION STRATEGIES FOR ESTIMATING THE STRENGTH OF GEOPOLYMER SELF-COMPACTING CONCRETE,” Knowledge-Based Engineering and Sciences, vol. 3, no. 1, pp. 1–16, Apr. 2022, doi: 10.51526/kbes.2022.3.1.1-16.
M. Liang, Z. Chang, Z. Wan, Y. Gan, E. Schlangen, and B. Šavija, “INTERPRETABLE ENSEMBLE-MACHINE-LEARNING MODELS FOR PREDICTING CREEP BEHAVIOR OF CONCRETE,” Cement and Concrete Composites, vol. 125, Jan. 2022, doi: 10.1016/j.cemconcomp.2021.104295.
M. W. Dwinanda, N. Satyahadewi, and W. Andani, “CLASSIFICATION OF STUDENT GRADUATION STATUS USING XGBOOST ALGORITHM,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 17, no. 3, pp. 1785–1794, Sep. 2023, doi: 10.30598/barekengvol17iss3pp1785-1794.
G. Sonkavde, D. S. Dharrao, A. M. Bongale, S. T. Deokate, D. Doreswamy, and S. K. Bhat, “FORECASTING STOCK MARKET PRICES USING MACHINE LEARNING AND DEEP LEARNING MODELS: A SYSTEMATIC REVIEW, PERFORMANCE ANALYSIS AND DISCUSSION OF IMPLICATIONS,” Multidisciplinary Digital Publishing Institute (MDPI), Sep. 01, 2023, doi: 10.3390/ijfs11030094.
M. M. Kumbure, C. Lohrmann, P. Luukka, and J. Porras, “MACHINE LEARNING TECHNIQUES AND DATA FOR STOCK MARKET FORECASTING: A LITERATURE REVIEW,” Elsevier Limited, Jul. 01, 2022, doi: 10.1016/j.eswa.2022.116659.
V. Drakopoulou, “A REVIEW OF FUNDAMENTAL AND TECHNICAL STOCK ANALYSIS TECHNIQUES,” Journal of Stock and Forex Trading, vol. 05, no. 01, 2016, doi: 10.4172/2168-9458.1000163.
Y. Pei et al., “TWEETFINSENT: A DATASET OF STOCK SENTIMENTS ON TWITTER,” Proceedings of the Fourth Workshop on Financial Technology and Natural Language Processing (FinNLP), pp. 37–47, Dec. 2022, doi: 10.18563/v1/2022.finnlp-1.5.
S. Mohapatra, R. Mukherjee, A. Roy, A. Sengupta, and A. Puniyani, “CAN ENSEMBLE MACHINE LEARNING METHODS PREDICT STOCK RETURNS FOR INDIAN BANKS USING TECHNICAL INDICATORS?,” Journal of Risk and Financial Management, vol. 15, no. 8, Aug. 2022, doi: 10.3390/jrfm15080350.
P. R. Mohapatra, A. K. Parida, S. K. Swain, and S. S. Basa, “GRADIENT BOOSTING AND LSTM BASED HYBRID ENSEMBLE LEARNING FOR TWO STEP PREDICTION OF STOCK MARKET,” Journal of Advances in Information Technology, vol. 14, no. 6, pp. 1254–1260, 2023, doi: 10.12720/jait.14.6.1254-1260.
K. Saetia and J. Yokrattanasak, “STOCK MOVEMENT PREDICTION USING MACHINE LEARNING BASED ON TECHNICAL INDICATORS AND GOOGLE TREND SEARCHES IN THAILAND,” International Journal of Financial Studies, vol. 11, no. 1, Mar. 2023, doi: 10.3390/ijfs11010005.
Y. Sheng and D. Ma, “STOCK INDEX SPOT–FUTURES ARBITRAGE PREDICTION USING MACHINE LEARNING MODELS,” Entropy, vol. 24, no. 10, Oct. 2022, doi: 10.3390/e24101462.
J. Xu et al., “FINANCIAL TIME SERIES PREDICTION BASED ON XGBOOST AND GENERATIVE ADVERSARIAL NETWORKS,” International Journal of Circuits, Systems and Signal Processing, vol. 16, pp. 637–645, 2022, doi: 10.46300/9106.2022.16.79.
M. Botlagunta et al., “CLASSIFICATION AND DIAGNOSTIC PREDICTION OF BREAST CANCER METASTASIS ON CLINICAL DATA USING MACHINE LEARNING ALGORITHMS,” Scientific Reports, vol. 13, no. 1, Dec. 2023, doi: 10.1038/s41598-023-27548-w.
J. Yao, “AUTOMATED SENTIMENT ANALYSIS OF TEXT DATA WITH NLTK,” Journal of Physics: Conference Series, May 2019. doi: 10.1088/1742-6596/1187/5/052020.
D. Dwivedi, S. Batra, and Y. K. Pathak, “A MACHINE LEARNING BASED APPROACH TO IDENTIFY KEY DRIVERS FOR IMPROVING CORPORATE’S ESG RATINGS,” Journal of Law and Sustainable Development, vol. 11, no. 1, Jan. 2023, doi: 10.37497/sdgs.v11i1.242.
W. Corey, “HANDS-ON GRADIENT BOOSTING WITH XGBOOST AND SCIKIT-LEARN : PERFORM ACCESSIBLE MACHINE LEARNING AND EXTREME GRADIENT BOOSTING WITH PYTHON,” Birmingham: Packt Publishing, 1st ed., vol. 1, 2020. Accessed: Oct. 01, 2024. [Online]. Available: https://studylib.net/doc/25882439/hands-on-gradient-boosting-with-xgboost-and-scikit-learn
S. Elsa Suryana and B. Warsito, “PENERAPAN GRADIENT BOOSTING DENGAN HYPEROPT UNTUK MEMPREDIKSI KEBERHASILAN TELEMARKETING BANK,” Jurnal Gaussian, vol. 10, no. 4, pp. 617–623, 2021, [Online]. Available: https://ejournal3.undip.ac.id/index.php/gaussian/
I. D. Mienye and Y. Sun, “A SURVEY OF ENSEMBLE LEARNING: CONCEPTS, ALGORITHMS, APPLICATIONS, AND PROSPECTS,” Institute of Electrical and Electronics Engineers Inc, 2022, doi: 10.1109/ACCESS.2022.3207287.
M. Lotfirad, H. Esmaeili-Gisavandani, and A. Adib, “DROUGHT MONITORING AND PREDICTION USING SPI, SPEI, AND RANDOM FOREST MODEL IN VARIOUS CLIMATES OF IRAN,” Journal of Water and Climate Change, vol. 13, no. 2, Feb. 2022, doi: 10.2166/wcc.2021.287.
M. G. El-Shafiey, A. Hagag, E. S. A. El-Dahshan, and M. A. Ismail, “A HYBRID GA AND PSO OPTIMIZED APPROACH FOR HEART-DISEASE PREDICTION BASED ON RANDOM FOREST,” Multimedia Tools Application, vol. 81, no. 13, pp. 18155–18179, May 2022, doi: 10.1007/s11042-022-12425-x.
L. J. Wu, X. Li, J. D. Yuan, and S. J. Wang, “REAL-TIME PREDICTION OF TUNNEL FACE CONDITIONS USING XGBOOST RANDOM FOREST ALGORITHM,” Frontiers of Structural and Civil Engineering, vol. 17, no. 12, pp. 1777–1795, Dec. 2023, doi: 10.1007/s11709-023-0044-4.
S. Chehreh Chelgani, H. Nasiri, A. Tohry, and H. R. Heidari, “MODELING INDUSTRIAL HYDROCYCLONE OPERATIONAL VARIABLES BY SHAP-CATBOOST - A ‘CONSCIOUS LAB’ APPROACH,” Powder Technology, vol. 420, Apr. 2023, doi: 10.1016/j.powtec.2023.118416.
J. Wu et al., “FAULT DIAGNOSIS OF THE HVDC SYSTEM BASED ON THE CATBOOST ALGORITHM USING KNOWLEDGE GRAPHS,” Front Energy Research, vol. 11, 2023, doi: 10.3389/fenrg.2023.1144785.
W. Chang, X. Wang, J. Yang, and T. Qin, “AN IMPROVED CATBOOST-BASED CLASSIFICATION MODEL FOR ECOLOGICAL SUITABILITY OF BLUEBERRIES,” Sensors, vol. 23, no. 4, Feb. 2023, doi: 10.3390/s23041811.
D. Zhou et al., “ESTABLISHMENT OF A DIFFERENTIAL DIAGNOSIS METHOD AND AN ONLINE PREDICTION PLATFORM FOR AOSD AND SEPSIS BASED ON GRADIENT BOOSTING DECISION TREES ALGORITHM,” Arthritis Research And Therapy, vol. 25, no. 1, Dec. 2023, doi: 10.1186/s13075-023-03207-3.
R. Alkentar and T. Mankovits, “OPTIMIZATION OF ADDITIVELY MANUFACTURED AND LATTICE-STRUCTURED HIP IMPLANTS USING THE LINEAR REGRESSION ALGORITHM FROM THE SCIKIT-LEARN LIBRARY,” Crystals, vol. 13, no. 10, Oct. 2023, doi: 10.3390/cryst13101513.
M. F. El-Amin, B. Alwated, and H. A. Hoteit, “MACHINE LEARNING PREDICTION OF NANOPARTICLE TRANSPORT WITH TWO-PHASE FLOW IN POROUS MEDIA,” Energies, vol. 16, no. 2, Jan. 2023, doi: 10.3390/en16020678.
K. Xu, Z. Han, H. Xu, and L. Bin, “RAPID PREDICTION MODEL FOR URBAN FLOODS BASED ON A LIGHT GRADIENT BOOSTING MACHINE APPROACH AND HYDROLOGICAL–HYDRAULIC MODEL,” International Journal of Disaster Risk Science, vol. 14, no. 1, pp. 79–97, Feb. 2023, doi: 10.1007/s13753-023-00465-2.
V. Raj, S. Q. Dotse, M. Sathyajith, M. I. Petra, and H. Yassin, “ENSEMBLE MACHINE LEARNING FOR PREDICTING THE POWER OUTPUT FROM DIFFERENT SOLAR PHOTOVOLTAIC SYSTEMS,” Energies, vol. 16, no. 2, Jan. 2023, doi: 10.3390/en16020671.
D. N. Gono, H. Napitupulu, and Firdaniza, “SILVER PRICE FORECASTING USING EXTREME GRADIENT BOOSTING (XGBOOST) METHOD,” Mathematics, vol. 11, no. 18, Sep. 2023, doi: 10.3390/math11183813.
Copyright (c) 2025 Delvian Christoper Kho, Hindriyanto Dwi Purnomo, Hendry Hendry

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this Journal agree to the following terms:
- Author retain copyright and grant the journal right of first publication with the work simultaneously licensed under a creative commons attribution license that allow others to share the work within an acknowledgement of the work’s authorship and initial publication of this journal.
- Authors are able to enter into separate, additional contractual arrangement for the non-exclusive distribution of the journal’s published version of the work (e.g. 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 websites) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published works.