Perbandingan Algoritma Random Forest dan SVM untuk Prediksi Tren Harga Saham BBCA


  • Muhammad Hasan Rizky * Mail Universitas Islam Negeri Raden Intan Lampung, Bandar Lampung, Indonesia
  • Dian Hafidh Zulfikar Universitas Islam Negeri Raden Intan Lampung, Bandar Lampung, Indonesia
  • Hermanto Hermanto Universitas Islam Negeri Raden Intan Lampung, Bandar Lampung, Indonesia
  • (*) Corresponding Author
Keywords: Random Forest; Support Vector Machine; BBCA Stock Prediction; Technical Indicators; Decision Support System

Abstract

A lack of financial literacy and a fear of investment risk often lead university students to engage in stock speculation without objective decision-making tools. This study aims to develop a machine learning-based predictive model to classify daily stock price movement trends for PT Bank Central Asia Tbk (BBCA) during the 2020-2026 period, a popular investment choice among students. A comparative experimental method is employed to evaluate and compare the performance of the Random Forest (RF) algorithm against the Support Vector Machine (SVM) algorithm using a Radial Basis Function (RBF) kernel. SMA-10, RSI-14, MACD, and Signal Line technical indicators were used to extract 1,151 rows of historical data from 2020 to 2026. The data was then divided chronologically using an 80:20 ratio. According to experimental data, the SVM model outperformed Random Forest (accuracy: 52.41%; precision: 43.15%) in terms of global accuracy (57.88%) and precision (47.69%). Nevertheless, the SVM model turned out to be unduly cautious, producing a poor recall of 24.22% and, as a result, losing many chances to spot rising (bullish) patterns. Random Forest, on the other hand, showed better balanced generalization ability, with an F1-score of 45.99% and a recall of 49.22%. This study introduces the integration of momentum indicators to mitigate FOMO among novice investors. As a result, Random Forest is suggested as the decision engine architecture for creating a system that helps students make investment decisions.

Downloads

Download data is not yet available.

References

A. N. Hidayat, B. Wijayantini, and I. Puspitadewi S, “Perilaku Investasi Mahasiswa Gen Z: Literasi, Persepsi Risiko, dan Efikasi Finansial,” vol. 5, no. 1, pp. 94–107, Jun. 2025, doi: https://doi.org/10.30595/jmbt.v5i1.26867.

M. A. S. Farich and Y. Kornitasari, “Pengaruh Makro Ekonomi Terhadap Return Saham Perbankan,” Contemporary Studies in Economic, Finance, and Banking (CSEFB), vol. 3, no. 1, pp. 145–156, 2024, doi: 10.21776/csefb.2024.03.1.13.

N. K. Sari, A. Mufidah, I. N. Awaliyah, and N. Nurhayati, “Dampak Perilaku Bias Terhadap Pengambilan Keputusan Investasi,” Jurnal Ilmiah Bisnis dan Ekonomi Asia, vol. 17, no. 2, pp. 196–211, Jul. 2023, doi: 10.32815/jibeka.v17i2.1542.

A. Rasyid, A. B. Muharam, and A. Solichin, “Prediksi Harga Saham Syariah Indonesia Berdasarkan Analisis Fundamental, Teknikal, dan Bandarmology Menggunakan Metode Random Forest,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 10, no. 2, pp. 1663–1677, May 2025, doi: 10.29100/jipi.v10i2.7855.

P. D. Kurniawan, H. Dwi Surjono, and H. Jati, “Pengembangan Model Hybrid ARIMA-Machine Learning untuk Prediksi Harga Saham BCA,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 12, no. 6, pp. 1425–1432, 2025, doi: 10.25126/jtiik.2025122711.

M. El Khoir and F. Ariany, “Perbandingan Kinerja Model ARIMA-GARCH dan LSTM Dalam Peramalan Volatilitas Bitcoin,” Technology and Science (BITS), vol. 8, no. 1, 2026, doi: 10.47065/bits.v8i1.9788.

A. Akbar Rismayadi, R. Wahyudi Febrianto, A. Rachmat Raharja, and I. Hariyanti, “Perbandingan Kinerja Metode Machine Learning Support Vector Machine (SVM), Random Forest, dan K-Nearest Neighbors (KNN) dalam Prediksi Harga Saham Apple,” Media Informatika, vol. 23, no. 3, pp. 152–160, 2024, Accessed: Oct. 04, 2026. [Online]. Available: https://garuda.kemdiktisaintek.go.id/documents/detail/4745167

Y. Wang, Y. Zhang, and A. H. Ahmed, “Detection of financial fraud and recidivism using machine learning algorithms: UK evidence,” European Journal of Finance, vol. 32, no. 15, pp. 1876–1903, 2026, doi: 10.1080/1351847X.2026.2678595.

S. S. Pashanka, J. D. Shendage, and J. Pawar, “Machine Learning Techniques for Stock Price Prediction: A Comparative Analysis of Linear Regression, Random Forest, and Support Vector Regression,” Journal of Advanced Zoology, vol. 45, no. S-4, pp. 118–127, 2024, doi: 10.53555/jaz.v45iS4.4164.

J. Peng, “Study on Forecasting Stock Prices Using Machine Learning Techniques: A Comparative Evaluation of Random Forest, Support Vector Machines, and Back Propagation Neural Network,” in Proceedings of the 2024 International Conference on Digital Economy and Computer Science, New York, NY, USA: ACM, Sep. 2024, pp. 273–278. doi: 10.1145/3705618.3705665.

W. K. Setiadi, V. R. Prasetyo, and F. D. Kartikasari, “Comparison of Extreme Learning Machine Methods and Support Vector Regression for Predicting Bank Share Prices in Indonesia,” Teknika, vol. 13, no. 2, pp. 219–225, Jun. 2024, doi: 10.34148/teknika.v13i2.856.

D. Kurniawan, M. Rahmah, and Z. B. Azzahra, “Analisis Pengaruh Investasi Pasar Saham terhadap Pertumbuhan Ekonomi di Indonesia,” Journal of Capital Markets and Banking, vol. 13, no. 3, pp. 153–165, 2025, doi: 10.63607/jcmb.v13i3.37.

A. Priyono, H. Firmansyah, W. Asriyani, and R. P. Tulodo, “Analisis Pengaruh Parameter Support Vector Machine Terhadap Akurasi Prediksi Harga Saham,” Jurnal Pengabdian Masyarakat dan Riset Pendidikan, vol. 4, no. 3, pp. 14686–14696, Dec. 2025, doi: 10.31004/jerkin.v4i3.4529.

Suryanto, “Analisis Teknikal Dengan Menggunakan Moving Average Convergence-Divergence Dan Relative Strength Index Pada Saham Perbankan,” Jurnal Ilmu Keuangan dan Perbankan (JIKA), vol. 11, pp. 51–65, 2021, doi: https://doi.org/10.34010/jika.v11i1.5896.

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. 59–64, 2023, doi: 10.52158/jacost.491.

A. M. Priyatno, L. S. Tanjung, W. F. Ramadhan, P. Cholidhazia, P. Z. Jati, and F. I. Firmananda, “Comparison Random Forest Regression and Linear Regression for Forecasting BBCA Stock Price,” Jurnal Teknik Industri Terintegrasi (JUTIN), vol. 6, no. 3, pp. 718–732, 2023, doi: 10.31004/jutin.v6i3.16933.

K. Pramulia and E. S. Dasawati, “Implementasi Sistem Pengambilan Keputusan Pembelian Saham di Indonesia berdasarkan Kinerja Berbasis Web,” Jurnal Informatika dan Bisnis, vol. 14, no. 1, pp. 15–27, Jun. 2025, doi: 10.46806/jib.v14i1.1413.

H. H. Solihin, “Analisis Prediksi Harga Saham PT. Astra International Tbk Menggunakan Metode Autoregressive Integrated Moving Average (ARIMA) dan Support Vector Regression (SVR),” Jurnal Ilmiah Komputasi, vol. 20, no. 3, pp. 315–322, Sep. 2021, doi: 10.32409/jikstik.20.3.2732.

M. E. Bastian, B. Rahayudi, and D. E. Ratnawati, “Prediksi Trend Harga Saham Jangka Pendek berdasarkan Fitur Technical Analysis dengan menggunakan Algoritma Random Forest,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 5, no. 8, pp. 4536–4542, Aug. 2021, Accessed: Oct. 04, 2026. [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/9945

Muhammad Hasbi, M. Jamil, M. H. Akbar, and Sharipuddin, “Analisis dan prediksi Harga Saham menggunakan Metode Random Forest,” Jurnal Ilmiah Media Sisfo, vol. 20, no. 1, pp. 1–10, Apr. 2026, doi: 10.33998/mediasisfo.2026.20.1.2707.

M. Y. Urrochman, H. Asy’ari, and F. A. Hizham, “Performance Comparison Of Random Forest Regression, Svr Models In Stock Price Prediction,” Jurnal Pilar Nusa Mandiri, vol. 21, no. 1, pp. 16–23, Mar. 2025, doi: 10.33480/pilar.v21i1.6072.

M. Nabipour, P. Nayyeri, H. Jabani, S. Shahab, and A. Mosavi, “Predicting Stock Market Trends Using Machine Learning and Deep Learning Algorithms Via Continuous and Binary Data; A Comparative Analysis,” IEEE Access, vol. 8, pp. 150199–150212, 2020, doi: 10.1109/ACCESS.2020.3015966.

S. R. Thumu and G. Nellore, “Optimized Ensemble Support Vector Regression Models for Predicting Stock Prices with Multiple Kernels,” Acta Informatica Pragensia, vol. 13, no. 1, pp. 24–37, 2024, doi: 10.18267/j.aip.226.

D. Ziaul, H. Iskandar, and Y. Ramdhani, “Optimasi Parameter Random Forest menggunakan Grid Search Untuk Analisis Time series,” Jurnal Sistem Informasi, vol. 5, pp. 85–92, 2023, doi: https://doi.org/10.33322/petir.v16i2.2084.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Perbandingan Algoritma Random Forest dan SVM untuk Prediksi Tren Harga Saham BBCA

Dimensions Badge
Article History
Submitted: 2026-09-16
Published: 2026-10-11
Abstract View: 0 times
PDF Download: 0 times
How to Cite
Rizky, M., Zulfikar, D., & Hermanto, H. (2026). Perbandingan Algoritma Random Forest dan SVM untuk Prediksi Tren Harga Saham BBCA. Journal of Information System Research (JOSH), 8(1), 48-57. https://doi.org/10.47065/josh.v8i1.11198
Section
Articles