Perbandingan Kinerja Algoritma Random Forest dan Xgboost Dalam Memprediksi Harga Bitcoin Menggunakan Indikator Teknikal


Authors

  • Ahmad Siddiq Fadhillah Universitas Esa Unggul, Jakarta, Indonesia
  • Rahmat Budiarsa Universitas Esa Unggul, Jakarta, Indonesia

DOI:

https://doi.org/10.47065/bulletincsr.v6i6.1313

Keywords:

Bitcoin; Technical Indicators; Machine Learning; Price Prediction; Random Forest; XGBoost

Abstract

The extreme volatility of crypto assets makes Bitcoin price movements notoriously difficult to predict using conventional linear forecasting approaches. This study aims to compare the performance of two machine learning algorithms Random Forest Regressor and XGBoost Regressor in projecting Bitcoin's closing price. A quantitative approach was employed using two years of historical time-series data, with the Simple Moving Average (SMA) and Relative Strength Index (RSI) serving as primary predictor features; both models were then comprehensively evaluated using absolute and percentage error metrics. Experimental results demonstrate that the XGBoost Regressor significantly outperformed the other model, achieving superior accuracy by minimizing error margins (MAE: 2327.81; RMSE: 2978.93; MAPE: 1.99%; R2: 0.4571), whereas the Random Forest model struggled to accurately capture volatile fluctuations (MAE: 2891.19; RMSE: 3619.53; MAPE: 2.53%; R2: 0.1984). Furthermore, the findings reveal that both algorithms largely disregarded momentum indicators, basing their predictions almost entirely on short-term average trend movements. In conclusion, XGBoost is empirically proven to be a far more robust and precise algorithm than Random Forest for modeling the anomaly-prone price dynamics of Bitcoin. The primary contribution of this research lies in providing empirical evidence regarding the effectiveness of the boosting paradigm over bagging for highly volatile crypto assets, as well as the direct implementation of the winning prediction architecture into an interactive Streamlit based dashboard to facilitate practical, real world investment decision making.

Downloads

Download data is not yet available.

References

N. Köse, Y. E. Gür, and E. Ünal, “Deep Learning and Machine Learning Insights Into the Global Economic Drivers of the Bitcoin Price,” J. Forecast., vol. 44, no. 5, pp. 1666–1698, Aug. 2025, doi: 10.1002/for.3258.

S. Hossaion, M. Bairagi, J. Aktar, U. Honey, and S. A. Mithy, “The Evolution of Bitcoin: A Historical Analysis and Future Prospects,” iRASD Journal of Economics, vol. 5, no. 2, pp. 241–252, Jun. 2023, doi: 10.52131/joe.2023.0502.0124.

M. N. M. Bhutta et al., “A Survey on Blockchain Technology: Evolution, Architecture and Security,” IEEE Access, vol. 9, no. 1, pp. 61048–61073, 2021, doi: 10.1109/ACCESS.2021.3072849.

S. Abdallah-Ou-Moussa, M. Wynn, and O. Kharbouch, “Blockchain, Cryptocurrencies, and Decentralized Finance: A Case Study of Financial Inclusion in Morocco,” International Journal of Financial Studies, vol. 13, no. 3, pp. 1–25, Sep. 2025, doi: 10.3390/ijfs13030124.

H. Sebastião and P. Godinho, “Forecasting and Trading Cryptocurrencies With Machine Learning Under Changing Market Conditions,” Financial Innovation, vol. 7, no. 1, Dec. 2021, doi: 10.1186/s40854-020-00217-x.

E. Fitri, “Analisis Perbandingan Metode Regresi Linier, Random Forest Regression dan Gradient Boosted Trees Regression Method untuk Prediksi Harga Rumah,” Journal of Applied Computer Science and Technology (JACOST), vol. 4, no. 1, pp. 2723–1453, 2023, doi: 10.52158/jacost.491.

Y. Zhu et al., “Price Prediction of Bitcoin Based on Adaptive Feature Selection and Model Optimization,” Mathematics, vol. 11, no. 6, Mar. 2023, doi: 10.3390/math11061335.

M. Nowak and M. Paw?owska-Nowak, “Dynamic Pricing Method in the E-Commerce Industry Using Machine Learning,” Applied Sciences (Switzerland), vol. 14, no. 24, pp. 1–15, Dec. 2024, doi: 10.3390/app142411668.

A. R. Al Musyaffa, Y. Pristyanto, and N. Mauliza, “Comparison of Ensemble Methods for Decision Tree Models in Classifying E. Coli Bacteria,” JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 10, no. 3, pp. 514–522, Feb. 2025, doi: 10.33480/jitk.v10i3.5972.

I. M. Anwas, F. Fahrianto, I. M. Shofi, and Ajif Yunizar Pratama, “Performance Comparison of LSTM, XGBoost, and Residual-Correction Hybrid LSTM–XGBoost Models for Bitcoin Price Forecasting,” MATRIK?: Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 25, no. 2, pp. 251–262, Mar. 2026, doi: 10.30812/matrik.v25i2.5983.

J. Chen, “Analysis of Bitcoin Price Prediction Using Machine Learning,” Journal of Risk and Financial Management, vol. 16, no. 1, Jan. 2023, doi: 10.3390/jrfm16010051.

T. A. D. Kurniawan, A. Setiawan, and F. Tita, “Perbandingan Kinerja Metode Support Vector Regression dan Metode Regresi Linier Berganda dalam Memprediksi BMI pada Dataset ASTHMA,” Jurnal Sains dan Edukasi Sains, vol. 8, no. 2, pp. 133–142, Aug. 2025, doi: 10.24246/juses.v8i2p133-142.

S. Samsudin, M. D. Irawan, M. I. P. Nasution, and R. A. Putri, “Bitcoin Price Forecasting Using Random Forest and On Chain Data,” Applied Information System and Management (AISM), vol. 8, no. 2, pp. 355–364, Oct. 2025, doi: 10.15408/aism.v8i2.46690.

M. D. Stasiak, ?. Staszak, and M. Stawarz, “Forecasting Crude Oil Prices Using the Binary RSI (bRSI) Indicator,” Energies (Basel)., vol. 18, no. 12, Jun. 2025, doi: 10.3390/en18123034.

S. Adeyemi, M. Z. Iqbal, and M. G. M. Talukder, “Machine Learning-Based Diabetes Risk Prediction via DiaHealth Dataset with Explainable AI and Streamlit Deployment,” Future Internet, vol. 18, no. 6, pp. 1–18, Jun. 2026, doi: 10.3390/fi18060331.

A. Akusta and M. N. Salur, “The Effect of Cryptocurrency Ecosystem and Global Indicators on Bitcoin Price,” Sosyoekonomi, vol. 33, no. 63, pp. 115–142, Jan. 2025, doi: 10.17233/sosyoekonomi.2025.01.06.

D. Wu, H. Cai, and T. Li, “Food Safety Risk Prediction and Regulatory Policy Enlightenment Based on Machine Learning,” Systems, vol. 13, no. 8, Aug. 2025, doi: 10.3390/systems13080715.

N. Alamsyah, B. Budiman, T. P. Yoga, and R. Y. R. Alamsyah, “XGBoost Hyperparameter Optimization Using RandomizedSearchCV for Accurate Forest Fire Drought Condition Prediction,” Jurnal Pilar Nusa Mandiri, vol. 20, no. 2, pp. 103–110, Sep. 2024, doi: 10.33480/pilar.v20i2.5569.

I. Naskinova, M. Kolev, M. Milev, and P. Mitev, “Signal-Derived Feature Analysis for Cuffless Blood Pressure Estimation: Comparing Machine Learning and Deep Learning on ICU Physiological Waveforms,” AI (Switzerland), vol. 7, no. 3, Mar. 2026, doi: 10.3390/ai7030098.

M. Ahmed, S. A. Suha, F. H. Mahi, and F. U. Ahmed, “Evaluating the Performance of Bitcoin Price Forecasting Using Machine Learning Techniques on Historical Data,” IAPGO?, vol. 14, no. 2, pp. 101–108, 2024, doi: 10.35784/iapgos.5657.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Perbandingan Kinerja Algoritma Random Forest dan Xgboost Dalam Memprediksi Harga Bitcoin Menggunakan Indikator Teknikal

Dimensions Badge

ARTICLE HISTORY

Published: 2026-10-16

Abstract View: 0 times
PDF Download: 0 times

How to Cite

Fadhillah, A. S., & Budiarsa, R. (2026). Perbandingan Kinerja Algoritma Random Forest dan Xgboost Dalam Memprediksi Harga Bitcoin Menggunakan Indikator Teknikal. Bulletin of Computer Science Research, 6(6), 2490-2500. https://doi.org/10.47065/bulletincsr.v6i6.1313

Issue

Section

Articles