Stock Price Prediction Modeling Using Recurrent Neural Network and Long-Short Term Memory
DOI:
https://doi.org/10.69693/jesa.v2i1.20Keywords:
BCA, LSTM, prediction, RNN, stockAbstract
Stock price fluctuations were very difficult to predict the direction of the changes. There were generally estimated to follow three analysis techniques: technical, fundamental, and sentiment. Technical analysis involves observing prices in the past, fundamental analysis is related to the analysis of ongoing business situations, while sentiment analysis includes stock prices that were affected by business aspects, current information, and business activities. Valid price data of the BCA Company used was the stock price from 2019 until 2024. The purpose of this study is to find alternative models of the RNN and LSTM models. The methods used in this study are the documentation method and the optimization method. Accuracy measurements used Mean Square Error (MSE) and Mean Absolute Error (MAE) metrics. The results of stock prediction using the RNN model got poor results with epoch 10 obtaining an accuracy of 61.3%, while using the LSTM model obtained quite good results with epoch 10 obtaining an accuracy of 87.7%. Stock predictions using the combined RNN-LSTM models were able to get good results with epoch 10 obtaining an accuracy of 93.3%.
Downloads
References
[1] A. Imelda, S. A. C. Sihono, and D. R. Anggarini, “Pengaruh Likuiditas, Profitabilitas, dan Rasio Pasar Terhadap Harga Saham (Studi Kasus Pada Perusahaan Indeks LQ45 Yang Terdaftar Di Bursa Efek Indonesia Periode 2017-2021),” Journals of Economics and Business, vol. 2, no. 2, pp. 17–25, Sep. 2022, doi: 10.33365/jeb.v2i2.114.
[2] T. J. Prasetya, V. A. Dina Safitri, and F. Yufantria, “Analisis Faktor-Faktor Yang Mempengaruhi Harga Saham,” Journals of Economics and Business, vol. 2, no. 1, pp. 37–46, May 2022, doi: 10.33365/jeb.v2i1.75.
[3] ksei, “Statistik Pasar Modal Indonesia,” https://www.ksei.co.id/files/Statistik_Publik_Januari_2024_v3.pdf.
[4] L. Rahmawati, H. M. K. Sari, and W. P. Setiyono, “Hebohnya U-23 Membuat Warna Harga Saham,” Journal of Economic, Bussines and Accounting (COSTING), vol. 8, no. 1, pp. 476–488, Feb. 2025, doi: 10.31539/costing.v8i1.13208.
[5] M. Waqas and U. W. Humphries, “A critical review of RNN and LSTM variants in hydrological time series predictions,” MethodsX, vol. 13, p. 102946, Dec. 2024, doi: 10.1016/j.mex.2024.102946.
[6] S. J. Pipin, R. Purba, and H. Kurniawan, “Prediksi Saham Menggunakan Recurrent Neural Network (RNN-LSTM) dengan Optimasi Adaptive Moment Estimation,” Journal of Computer System and Informatics (JoSYC), vol. 4, no. 4, pp. 806–815, Aug. 2023, doi: 10.47065/josyc.v4i4.4014.
[7] Ghufron Tamami and M. Arifin, “Penggunaan LSTM dalam Membangun Prediksi Penjualan untuk Aplikasi Laptop Lens,” JURNAL FASILKOM, vol. 14, no. 2, pp. 301–308, Aug. 2024, doi: 10.37859/jf.v14i2.7372.
[8] M. N. Wathani, K. Kusrini, and K. Kusnawi, “Prediksi Tren Pergerakan Harga Saham PT Bank Central Asia Tbk, Dengan Menggunakan Algoritma Long Shot Term Memory (LSTM),” Infotek: Jurnal Informatika dan Teknologi, vol. 6, no. 2, pp. 502–512, Jul. 2023, doi: 10.29408/jit.v6i2.19824.
[9] G. Musyoka, A. Waititu, and H. Imboga, “Credit Risk Modelling Using RNN-LSTM Hybrid Model for Digital Financial Institutions,” International Journal of Statistical Distributions and Applications, vol. 10, no. 2, pp. 16–24, Apr. 2024, doi: 10.11648/j.ijsd.20241002.11.
[10] M. R. Firmansyah, R. Ilyas, and F. Kasyidi, “Klasifikasi Kalimat Ilmiah Menggunakan Recurrent Neural Network,” Prosiding 11th Industrial Research Workshop and National Seminar (IRWNS), vol. 11, no. 1, pp. 488–495, Sep. 2020.
[11] H. Zreik, “Stock Certificates: Stock Certificates: The Art of Recognizing Ownership,” https://fastercapital.com/content/Stock-Certificates--Stock-Certificates--The-Art-of-Recognizing-Ownership.html.
[12] A. D. Milniadi and N. O. Adiwijaya, “Analisis Perbandingan Model Arima dan LSTM Dalam Peramalan Harga Penutupan Saham (Studi Kasus : 6 Kriteria Kategori Saham Menurut Peter Lynch),” SIBATIK JOURNAL: Jurnal Ilmiah Bidang Sosial, Ekonomi, Budaya, Teknologi, dan Pendidikan, vol. 2, no. 6, pp. 1683–1692, May 2023, doi: 10.54443/sibatik.v2i6.798.
[13] A. M. Priyatno, L. Ningsih, and M. Noor, “Harnessing Machine Learning for Stock Price Prediction with Random Forest and Simple Moving Average Techniques,” Journal of Engineering and Science Application, vol. 1, no. 1, pp. 1–8, Mar. 2024, doi: 10.69693/jesa.v1i1.1.
[14] D. Chung, “How to Use yfinance API with Python,” https://www.geeksforgeeks.org/how-to-use-yfinance-api-with-python/.
[15] W. Sudrajat and I. Cholid, “K-NEAREST NEIGHBOR (K-NN) Untuk Penanganan Missing Value Pada Data UMKM,” Jurnal Rekayasa Sistem Informasi dan Teknologi, vol. 1, no. 2, pp. 54–63, Nov. 2023, doi: 10.59407/jrsit.v1i2.77.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Journal of Engineering and Science Application

This work is licensed under a Creative Commons Attribution 4.0 International License.













