Prediksi Harga Saham Menggunakan Model Multivariate Long Short-Term Memories


  • Ebenhaezer Yohanes Abdeel Mahulete * Mail Universitas Kristen Satya Wacana, Salatiga, Indonesia
  • Hendry Hendry Universitas Kristen Satya Wacana, Salatiga, Indonesia
  • (*) Corresponding Author
Keywords: Stock Prediction; LSTM; Multivariate; Deep Learning; OHLC

Abstract

This study aims to develop and evaluate a stock price prediction model for Bank Central Asia (BBCA) using a multivariate Long Short Term Memory (LSTM) approach. The model utilizes four key variables from historical stock data open, high, low, and close prices and is compared to a univariate model that uses only the closing price as input. The research process includes data preprocessing, LSTM architecture design, model training over 200 epochs, and performance evaluation using MAE, RMSE, and MAPE metrics. The results demonstrate that the multivariate LSTM model provides higher predictive accuracy, achieving a MAPE of 2.41%, outperforming the univariate model which recorded 2.71%. Moreover, the multivariate model shows better stability across validation and test data, and greater adaptability in capturing market dynamics. Prediction result visualizations support these findings, with the multivariate model producing more consistent forecasts that closely follow actual data. These results suggest that integrating OHLC variables enhances prediction accuracy and model reliability. This study contributes to the advancement of stock price prediction systems based on deep learning and serves as a valuable reference for investors and decision-makers in designing more data-driven investment strategies.

Downloads

Download data is not yet available.

References

P. Aji Riyantoko, T. Maulana Fahruddin, K. Maulida Hindrayani, and E. Maya Safitri, “ANALISIS PREDIKSI HARGA SAHAM SEKTOR PERBANKAN MENGGUNAKAN ALGORITMA LONG-SHORT TERMS MEMORY (LSTM),” Seminar Nasional Informatika, vol. 2020.

B. Singh, R. Martyr, T. Medland, J. Astin, G. Hunter, and J. C. Nebel, “Cloud based evaluation of databases for stock market data,” Journal of Cloud Computing, vol. 11, no. 1, 2022, doi: 10.1186/s13677-022-00323-4.

V. Y. Avisha, R. R. Dewi, and E. Masitoh, “PENGARUH KINERJA KEUANGAN TERHADAP RETURN SAHAM PADA PERUSAHAAN MANUFAKTUR,” Jurnal Ilmiah Manajemen Ubhara, vol. 2, no. 2, 2020, doi: 10.31599/jmu.v2i2.763.

Yulianti, Hasanuddin, and G. Roydah, “Analisis Risiko Investasi Saham Pada Perusahaan Manufaktur,” 2023. [Online]. Available: https://jurnal.unigo.ac.id/index.php/jemai

I. P. Windasari, A. B. Prasetijo, and R. P. Pangabean, “Indonesia stock exchange securities buy/sell signal detection using bollinger bands and williams percent range,” in 2018 International Seminar on Research of Information Technology and Intelligent Systems, ISRITI 2018, 2018. doi: 10.1109/ISRITI.2018.8864452.

L. Zhang, C. Aggarwal, and G. J. Qi, “Stock price prediction via discovering multi-frequency trading patterns,” in Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2017. doi: 10.1145/3097983.3098117.

T. Fischer and C. Krauss, “Deep learning with long short-term memory networks for financial market predictions,” Eur J Oper Res, vol. 270, no. 2, 2018, doi: 10.1016/j.ejor.2017.11.054.

D. M. Q. Nelson, A. C. M. Pereira, and R. A. De Oliveira, “Stock market’s price movement prediction with LSTM neural networks,” in Proceedings of the International Joint Conference on Neural Networks, 2017. doi: 10.1109/IJCNN.2017.7966019.

Y. Qin, D. Song, H. Cheng, W. Cheng, G. Jiang, and G. W. Cottrell, “A dual-stage attention-based recurrent neural network for time series prediction,” in IJCAI International Joint Conference on Artificial Intelligence, 2017. doi: 10.24963/ijcai.2017/366.

M. Diqi, I. Wayan Ordiyasa, and R. Yogyakarta, “Enhancing Stock Price Prediction Using Stacked Long Short-Term Memory,” Journal Research and Development (ITJRD), vol. 8, no. 1, 2024, doi: 10.25299/itjrd.2024.13486.

C. L. Jiang, Y. K. Tsai, Z. E. Shao, S. H. Lee, C. C. Hsueh, and K. W. Huang, “Hybrid Crow Search Algorithm–LSTM System for Enhanced Stock Price Forecasting,” Applied Sciences (Switzerland), vol. 14, no. 23, Dec. 2024, doi: 10.3390/app142311380.

L. Wiranda and M. Sadikin, “PENERAPAN LONG SHORT TERM MEMORY PADA DATA TIME SERIES UNTUK MEMPREDIKSI PENJUALAN PRODUK PT. METISKA FARMA.”

M. Mauludin and Dr. Rodiah, “Daily Forecasting Trend Jakarta Composite Index (JCI) Using Multivariate Long Short Term Memory,” International Journal of Research Publications, vol. 108, Aug. 2022, doi: 10.47119/ijrp1001081920223853.

A. S. B. Karno, “Prediksi Data Time Series Saham Bank BRI Dengan Mesin Belajar LSTM (Long ShortTerm Memory),” Journal of Informatic and Information Security, vol. 1, no. 1, 2020, doi: 10.31599/jiforty.v1i1.133.

G. Ding and L. Qin, “Study on the prediction of stock price based on the associated network model of LSTM,” International Journal of Machine Learning and Cybernetics, vol. 11, no. 6, pp. 1307–1317, Jun. 2020, doi: 10.1007/s13042-019-01041-1.

H. N. Bhandari, B. Rimal, N. R. Pokhrel, R. Rimal, K. R. Dahal, and R. K. C. Khatri, “Predicting stock market index using LSTM,” Machine Learning with Applications, vol. 9, p. 100320, Sep. 2022, doi: 10.1016/j.mlwa.2022.100320.

I. H, “Netflix Stock Price Trend Prediction Using Recurrent Neural Network,” Jurnal CoreIT: Jurnal Hasil Penelitian Ilmu Komputer dan Teknologi Informasi, vol. 8, no. 2, p. 97, Dec. 2022, doi: 10.24014/coreit.v8i2.16599.

Chollet François, Chollet - 2018 - Deep learning with Python, vol. 53, no. 9. 2019.

B. Farnham, S. Tokyo, B. Boston, F. Sebastopol, and T. Beijing, “Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow Concepts, Tools, and Techniques to Build Intelligent Systems SECOND EDITION.”

L. Skovajsova, “Long short-term memory description and its application in text processing,” in 2017 9th International Scientific Conference on Communication and Information Technologies, KIT 2017 - Proceedings, 2017. doi: 10.23919/KIT.2017.8109465.

A. Sherstinsky, “Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network,” Physica D, vol. 404, 2020, doi: 10.1016/j.physd.2019.132306.

M. Sadli, Fajriana, W. Fuadi, Ermatita, and I. Pahendra, “Electrical peak load forecasting using long short term memory and support vector machine,” in IOP Conference Series: Materials Science and Engineering, 2020. doi: 10.1088/1757-899X/725/1/012060.

G. Van Houdt, C. Mosquera, and G. Nápoles, “A review on the long short-term memory model,” Artif Intell Rev, vol. 53, no. 8, 2020, doi: 10.1007/s10462-020-09838-1.

B. A. H. Kholifatullah and A. Prihanto, “Penerapan Metode Long Short Term Memory Untuk Klasifikasi Pada Hate Speech,” Journal of Informatics and Computer Science (JINACS), 2023, doi: 10.26740/jinacs.v4n03.p292-297.

A. Khumaidi, R. Raafi’udin, and I. P. Solihin, “Pengujian Algoritma Long Short Term Memory untuk Prediksi Kualitas Udara dan Suhu Kota Bandung,” Jurnal Telematika, vol. 15, no. 1, 2020, doi: 10.61769/telematika.v15i1.340.

C. Olah, “Understanding LSTM Networks [Blog],” Web Page, 2015.

J. Palet, V. Manquinho, and R. Henriques, “Multiple-input neural networks for time series forecasting incorporating historical and prospective context,” Data Min Knowl Discov, vol. 38, no. 1, 2024, doi: 10.1007/s10618-023-00984-y.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Prediksi Harga Saham Menggunakan Model Multivariate Long Short-Term Memories

Dimensions Badge
Article History
Submitted: 2025-07-11
Published: 2025-12-07
Abstract View: 292 times
How to Cite
Mahulete, E., & Hendry, H. (2025). Prediksi Harga Saham Menggunakan Model Multivariate Long Short-Term Memories. Building of Informatics, Technology and Science (BITS), 7(2), 1477-1486. https://doi.org/10.47065/bits.v7i2.7978
Section
Articles