Prediksi Harga Saham BBCA Menggunakan Metode CNN, LSTM dan CNN-LSTM Berbasis Data Time Series


  • Rifki Faiz Azzurananda Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Siska Kurnia Gusti * Mail Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Elin Haerani Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Eka Pandu Cynthia Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • (*) Corresponding Author
Keywords: Stock Prediction; CNN; LSTM; CNN-LSTM; Time Series

Abstract

Predicting stock prices is a real challenge because financial data moves unpredictably and its patterns are hard to figure out. This study implements and compares three deep learning models, namely Convolutional Neural Network (CNN), Long Short-Term Memory (LSTM), and hybrid CNN-LSTM, to predict the stock price of PT Bank Central Asia Tbk (BBCA) using OHLCV (Open, High, Low, Close, Volume) data from 2015 to 2025. The focus of this study is to compare the performance of each model under different experimental settings, rather than to propose a new architecture. Experiments were carried out using timesteps of 30, 60, and 90, combined with data split ratios of 70:30, 80:20, and 90:10. Model performance was measured using Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²). The results show that CNN gave the most stable performance across all tested scenarios, while LSTM was able to pick up temporal patterns but still showed lagging in some conditions. The hybrid CNN-LSTM model came out on top at timestep 90 with an 80:20 data split, reaching an RMSE of 130.5432, MAPE of 1.0669%, and R² of 0.9581. This shows that the CNN-LSTM hybrid works better at producing accurate and responsive predictions compared to single models.

Downloads

Download data is not yet available.

References

A. Harianto, M. H. Al Fauzan, and A. Malik, “Peran Pasar Modal Dalam Meningkatkan Perekonomian Di Indonesia The Role Of Capital Markets In Improving The Economy In,” pp. 7237–7247, 2024, doi: 10.54066/abdimas.v4i2.652.

D. E. S. Ririn Nur Fadila, “Pengaruh Inflasi , Suku Bunga , dan Nilai Tukar terhadap Harga Saham Perbankan di BEI Periode 2020-2024,” vol. 7, no. 3, pp. 753–761, 2026, doi: 10.47065/ekuitas.v7i3.9261.

M. Lathif Arafat, Williya Meta, “Performance Comparison of Indonesia ’ s Big Banks Using The Competitive Profile Matrix Approach,” vol. 21, no. June, pp. 57–70, 2025, doi: 10.21107/infestasi.v21i1.29836.

B. Zhang, “The Stock Price Forecasting Based on Time Series Model and Neural Network,” vol. 38, pp. 3423–3428, 2023, doi: 10.54691/bcpbm.v38i.4319.

H. Malaikah and J. F. Alabdali, “Analysis of Noise on Ordinary and Fractional-Order Financial Systems,” 2025, doi: 10.3390/fractalfract9050316.

R. Tanuwijaya, D. A. Kurnia, Y. A. Wijaya, and P. P. Marta, “Prediksi Harga Saham BUMN Menggunakan Long Short-Term.,” vol. 06, no. 02, pp. 1–9, 2025, doi: 10.32485/jcsai.dan.

M. Barua, T. Kumar, and K. Raj, “Comparative Analysis of Deep Learning Models for Stock Price Prediction in the Indian Market,” FinTech (MDPI), vol. 3, no. 4, pp. 551–568, 2024, doi: https:// doi.org/10.3390/fintech3040029.

S. K. G. Juliandi Kurniansyah and M. A. , Febi Yanto, “Implementasi Model Long Short Term Memory pada Prediksi Harga Saham Bank BCA,” vol. 6, no. 2, pp. 79–86, 2025, doi: 10.47065/bit.v5i2.1783.

Y. Zhang, “Stock Price Prediction Using ARIMA and LSTM Models : An Application to CSI 300 Closing Prices,” vol. 88, pp. 286–293, 2024, doi: 10.54097/7dgx1c14.

M. D. B. H. K. Mohan, “A convolutional neural network based approach to financial time series prediction,” Neural Comput. Appl., vol. 34, no. 16, pp. 13319–13337, 2022, doi: 10.1007/s00521-022-07143-2.

S. Kiranyaz, O. Avci, O. Abdeljaber, T. Ince, M. Gabbouj, and D. J. Inman, “1D convolutional neural networks and applications : A survey,” Mech. Syst. Signal Process., vol. 151, p. 107398, 2021, doi: 10.1016/j.ymssp.2020.107398.

P. Lara-ben and M. Carranza-garc, “An Experimental Review on Deep Learning Architectures for Time Series Forecasting *,” vol. 31, no. 3, pp. 1–25, 2021, doi: 10.1142/S0129065721300011.

M. Abumohsen, A. Yousef, M. Owda, and A. Abumihsan, “e-Prime - Advances in Electrical Engineering , Electronics and Energy Hybrid machine learning model combining of CNN-LSTM-RF for time series forecasting of Solar Power Generation,” e-Prime - Adv. Electr. Eng. Electron. Energy, vol. 9, no. June, p. 100636, 2024, doi: 10.1016/j.prime.2024.100636.

C. Wibowo, R. Purba, and M. F. Pasha, “Jurnal Teknologi dan Manajemen Informatika Implementation of the CNN-LSTM Hybrid Model in Predicting Bitcoin Price Fluctuations,” vol. 11, no. 2, pp. 201–211, 2025, doi: 10.26905/jtmi.v11i2.16239.

D. T. Handayani, Susi, Taslim, “Convolutional Neural Network – Long Short Term Memory Untuk Prediksi Harga Emas Indonesia,” vol. 11, no. 1, pp. 901–911, 2022, doi: 10.33022/ijcs.v11i3.3074.

S. Kang and J. Kim, “Stock Price Prediction Using Triple Barrier Labeling and Raw OHLCV Data : Evidence from Korean Markets,” p. 7, 2025, [Online]. Available: https://arxiv.org/abs/2504.02249

S. Joddy, “Comparative Analysis of CNN , LSTM , and CNN – LSTM for Indonesian Stock Prediction,” vol. 7, no. 3, pp. 283–289, 2025, doi: 10.21512/emacsjournal.v6.

Z. Zhan and S. Kyoo, “Versatile time ‑ window sliding machine learning techniques for stock market forecasting,” Artif. Intell. Rev., vol. 57, no. 8, pp. 1–25, 2024, doi: 10.1007/s10462-024-10851-x.

L. Liu and Y. Whar, “classification in financial time series,” J. Supercomput., vol. 78, no. 12, pp. 14191–14214, 2022, doi: 10.1007/s11227-022-04431-5.

A. Ritonga, A. Ma, and I. Suwarno, “Stock Price Forecasting with Multivariate Time Series Long Short-Term Memory : A Deep Learning Approach,” vol. 5, no. 5, pp. 1322–1335, 2024, doi: 10.18196/jrc.v5i5.22460.

W. Chen, W. Hussain, F. Cauteruccio, and X. Zhang, “Deep Learning for Financial Time Series Prediction : A State-of-the-Art Review of Standalone and Hybrid Models Auto encoder,” 2023, doi: 10.32604/cmes.2023.031388.

M. A. El-meligy, “Harnessing a Hybrid CNN-LSTM Model for Portfolio Performance : A Case Study on Stock Selection and Optimization,” IEEE Access, vol. 11, no. August, pp. 104000–104015, 2023, doi: 10.1109/ACCESS.2023.3317953.

M. F. Suprapto and S. Andryana, “Optimizing CNN-LSTM Models for Stock Price Prediction in a Multi-Sector Holding Company,” vol. 3, no. 1, pp. 1–8, 2026, doi: 10.21512/ijcshaijournal.v3i1.14936.

P. H. Vuong and L. H. Phu, A bibliometric literature review of stock price forecasting : From statistical model to deep learning approach, vol. 107, no. 1. 2024. doi: 10.1177/00368504241236557.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Prediksi Harga Saham BBCA Menggunakan Metode CNN, LSTM dan CNN-LSTM Berbasis Data Time Series

Dimensions Badge
Article History
Published: 2026-06-23
Abstract View: 0 times
PDF Download: 0 times
How to Cite
Azzurananda, R., Gusti, S., Haerani, E., & Cynthia, E. (2026). Prediksi Harga Saham BBCA Menggunakan Metode CNN, LSTM dan CNN-LSTM Berbasis Data Time Series. Bulletin of Data Science, 5(3), 209-222. https://doi.org/10.47065/bulletinds.v5i3.10262
Issue
Section
Articles

Most read articles by the same author(s)

1 2 > >>