IMPLEMENTASI METODE RANDOM FOREST DALAM MEMPREDIKSI SINYAL PERGERAKAN SAHAM

  • MOCH. ANJAS APRIHARTHA Universitas Dian Nuswantoro
  • M. HUSNIYADI Universitas Dian Nuswantoro
  • TAUFIK NUR ALAM Universitas Dian Nuswantoro

Abstract

Trading involves purchasing stocks at low prices and then selling them at high prices to generate profits in a short period. Although it offers significant gains, trading is considered a high-risk activity. Careful analysis is required in stock trading to maximize profits and minimize losses. One way to analyze stocks is through technical analysis, a method used to predict price movements by understanding market actions with charts and technical indicators. One statistical method developed to predict stock trends is the random forest method. Random forest is a combination algorithm of several decision trees used to solve prediction or classification problems. The objective of this research is to obtain the best model for predicting stock price movements. Three types of datasets, namely deterministic, nondeterministic, and mixed, are applied for comparison. The data used is daily historical stock price data of Bank Central Asia Tbk (BBCA) for 10 years. The research results reveal that the best model is using the mixed dataset, constructed with mtry = 6 and ntree = 500. The resulting accuracy is 94,26%, indicating that the model accurately predicts the movement signals of BBCA stock by 94,26%, with the remaining 5,74% misclassification.

Downloads

Download data is not yet available.

Author Biographies

MOCH. ANJAS APRIHARTHA, Universitas Dian Nuswantoro

Prodi PJJ Informatika, Fakultas Ilmu Komputer, Universitas Dian Nuswantoro

M. HUSNIYADI, Universitas Dian Nuswantoro

Prodi PJJ Informatika, Fakultas Ilmu Komputer, Universitas Dian Nuswantoro

TAUFIK NUR ALAM, Universitas Dian Nuswantoro

Prodi PJJ Informatika, Fakultas Ilmu Komputer, Universitas Dian Nuswantoro

Published
2025-01-31
How to Cite
APRIHARTHA, MOCH. ANJAS; HUSNIYADI, M.; ALAM, TAUFIK NUR. IMPLEMENTASI METODE RANDOM FOREST DALAM MEMPREDIKSI SINYAL PERGERAKAN SAHAM. E-Jurnal Matematika, [S.l.], v. 14, n. 1, p. 43-49, jan. 2025. ISSN 2303-1751. Available at: <https://ojs.unud.ac.id/index.php/mtk/article/view/114840>. Date accessed: 05 may 2025. doi: https://doi.org/10.24843/MTK.2025.v14.i01.p477.
Section
Articles

Most read articles by the same author(s)