Analisis dan prediksi Harga Saham menggunakan Metode Random Forest

Authors

DOI:

https://doi.org/10.33998/mediasisfo.2026.20.1.2707

Keywords:

hyperparameter tuning, machine learning, prediksi harga saham, random forest, time series

Abstract

Stock price movements are highly volatile and influenced by various factors, making the investment decision-making process challenging, particularly for investors who rely on historical data. This study aims to analyze the performance of the Random Forest method in predicting the stock price of PT Bank Central Asia Tbk (BBCA) based on technical indicators. The methodology involves processing historical stock price data using a time-series approach, calculating technical indicators such as Exponential Moving Average, Moving Average, Relative Strength Index, Moving Average Convergence Divergence, and trading volume, as well as training a Random Forest model. The dataset is chronologically divided into training and testing sets to maintain temporal consistency. Model evaluation is conducted using Mean Absolute Error, Root Mean Squared Error, Mean Absolute Percentage Error, and the coefficient of determination. The results indicate that the Random Forest model provides strong predictive performance, achieving a Mean Absolute Error of 202.91, a Root Mean Squared Error of 260.83, a Mean Absolute Percentage Error of 2.13%, and a coefficient of determination of 0.85. Feature contribution analysis reveals that the 12-period Exponential Moving Average has the most dominant influence on the prediction results. Based on these findings, it can be concluded that the Random Forest method is effective for predicting stock prices based on technical indicators and has the potential to support investment decision-making.

Downloads

Download data is not yet available.
40 Abstract Views
35 PDF Downloads

Downloads

Published

2026-04-30

How to Cite

Analisis dan prediksi Harga Saham menggunakan Metode Random Forest. (2026). Journal Ilmiah Media Sisfo, 20(1), 1-10. https://doi.org/10.33998/mediasisfo.2026.20.1.2707

Similar Articles

1-10 of 29

You may also start an advanced similarity search for this article.