Harnessing Deep Learning and Technical Indicators for Enhanced Stock Predictions of Blue-Chip Stocks on the Indonesia Stock Exchange (IDX)
Received: 6 December 2024 | Revised: 23 December 2024 | Accepted: 1 January 2025 | Online: 14 January 2025
Corresponding author: Rudy Hartanto
Abstract
Given the limitations of existing models in accurately predicting stock prices, particularly in emerging markets such as Indonesia, this study aimed to evaluate the effectiveness of deep learning models in forecasting stock prices using blue-chip company shares traded on the Indonesia Stock Exchange (IDX). The main focus lies in combining historical stock data with a series of existing technical indicators, optimizing their integration to improve prediction accuracy. The accuracy of this method is reflected in a comprehensive evaluation of model performance using robust metrics, including R2, Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). Empirical results show the superiority of models integrating technical indicators compared to models relying only on historical data. The LSTM model showed the most significant improvement, with R2 for ASII stock jumping by 14.59% after incorporating technical indicators. The prediction accuracy of the GRU model for BBCA shares increased significantly, as shown by a decrease of 45.16% in MSE. These findings underscore the critical role of feature selection in developing prediction models. Integrating technical indicators with historical stock data increases prediction accuracy and provides additional tools for informed decision-making.
Keywords:
stock prediction, RNN, GRU, LSTM, technical indicator, Indonesia stock exchangeDownloads
References
M. Nabipour, P. Nayyeri, H. Jabani, A. Mosavi, E. Salwana, and S. Shahab, "Deep Learning for Stock Market Prediction," Entropy, vol. 22, no. 8, Aug. 2020, Art. no. 840.
U. Gupta, V. Bhattacharjee, and P. S. Bishnu, "StockNet—GRU based stock index prediction," Expert Systems with Applications, vol. 207, Nov. 2022, Art. no. 117986.
M. Nabipour, P. Nayyeri, H. Jabani, S. Shahab, and A. Mosavi, "Predicting Stock Market Trends Using Machine Learning and Deep Learning Algorithms Via Continuous and Binary Data; a Comparative Analysis," IEEE Access, vol. 8, pp. 150199–150212, 2020.
Y. Gao, R. Wang, and E. Zhou, "Stock Prediction Based on Optimized LSTM and GRU Models," Scientific Programming, vol. 2021, no. 1, 2021, Art. no. 4055281.
N. Deepika and M. Nirupamabhat, "An Optimized Machine Learning Model for Stock Trend Anticipation," Ingénierie des systèmes d information, vol. 25, no. 6, pp. 783–792, Dec. 2020.
T. T. Nguyen and S. Yoon, "A Novel Approach to Short-Term Stock Price Movement Prediction using Transfer Learning," Applied Sciences, vol. 9, no. 22, Jan. 2019, Art. no. 4745.
W. Lu, J. Li, Y. Li, A. Sun, and J. Wang, "A CNN-LSTM-Based Model to Forecast Stock Prices," Complexity, vol. 2020, no. 1, 2020, Art. no. 6622927.
P. Dey et al., "Comparative Analysis of Recurrent Neural Networks in Stock Price Prediction for Different Frequency Domains," Algorithms, vol. 14, no. 8, Aug. 2021, Art. no. 251.
D. Lien Minh, A. Sadeghi-Niaraki, H. D. Huy, K. Min, and H. Moon, "Deep Learning Approach for Short-Term Stock Trends Prediction Based on Two-Stream Gated Recurrent Unit Network," IEEE Access, vol. 6, pp. 55392–55404, 2018.
X. Yan, W. Weihan, and M. Chang, "Research on financial assets transaction prediction model based on LSTM neural network," Neural Computing and Applications, vol. 33, no. 1, pp. 257–270, Jan. 2021.
B. Y. Dwiandiyanta, "Optimization of Stock Movements Based on Historical Data for Stock Index Prediction Using Deep Learning Models," International Journal of Intelligent Systems and Applications in Engineering, vol. 12, no. 4, pp. 3982–3993, Jun. 2024.
N. Y. Vanguri, S. Pazhanirajan, and T. A. Kumar, "Competitive feedback particle swarm optimization enabled deep recurrent neural network with technical indicators for forecasting stock trends," International Journal of Intelligent Robotics and Applications, vol. 7, no. 2, pp. 385–405, Jun. 2023.
B. Y. Dwiandiyanta, "Optimization of Stock Movements Based on Historical Data for Stock Index Prediction Using Deep Learning Models," International Journal of Intelligent Systems and Applications in Engineering, vol. 12, no. 4, pp. 3982–3993, Jun. 2024.
S. Borovkova and I. Tsiamas, "An ensemble of LSTM neural networks for high-frequency stock market classification," Journal of Forecasting, vol. 38, no. 6, pp. 600–619, 2019.
W. Long, Z. Lu, and L. Cui, "Deep learning-based feature engineering for stock price movement prediction," Knowledge-Based Systems, vol. 164, pp. 163–173, Jan. 2019.
S. Chen and L. Ge, "Exploring the attention mechanism in LSTM-based Hong Kong stock price movement prediction," Quantitative Finance, vol. 19, no. 9, pp. 1507–1515, Sep. 2019.
J. Zhao, D. Zeng, S. Liang, H. Kang, and Q. Liu, "Prediction model for stock price trend based on recurrent neural network," Journal of Ambient Intelligence and Humanized Computing, vol. 12, no. 1, pp. 745–753, Jan. 2021.
W. Budiharto, "Data science approach to stock prices forecasting in Indonesia during Covid-19 using Long Short-Term Memory (LSTM)," Journal of Big Data, vol. 8, no. 1, Mar. 2021, Art. no. 47.
S. Joseph, N. Mduma, and D. Nyambo, "A Deep Learning Model for Predicting Stock Prices in Tanzania," Engineering, Technology & Applied Science Research, vol. 13, no. 2, pp. 10517–10522, Apr. 2023.
J. Qiu, B. Wang, and C. Zhou, "Forecasting stock prices with long-short term memory neural network based on attention mechanism," PLOS ONE, vol. 15, no. 1, Jan. 2020, Art. no. e0227222.
T. Fischer and C. Krauss, "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, vol. 270, no. 2, pp. 654–669, Oct. 2018.
X. Pang, Y. Zhou, P. Wang, W. Lin, and V. Chang, "An innovative neural network approach for stock market prediction," The Journal of Supercomputing, vol. 76, no. 3, pp. 2098–2118, Mar. 2020.
M. Jarrah and N. Salim, "A Recurrent Neural Network and a Discrete Wavelet Transform to Predict the Saudi Stock Price Trends," International Journal of Advanced Computer Science and Applications, vol. 10, no. 4, 2019.
Q. Zhu, J. Che, Y. Li, and R. Zuo, "A new prediction NN framework design for individual stock based on the industry environment," Data Science and Management, vol. 5, no. 4, pp. 199–211, Dec. 2022.
H. Xu, L. Chai, Z. Luo, and S. Li, "Stock movement prediction via gated recurrent unit network based on reinforcement learning with incorporated attention mechanisms," Neurocomputing, vol. 467, pp. 214–228, Jan. 2022.
Y. Qiu, H. Y. Yang, S. Lu, and W. Chen, "A novel hybrid model based on recurrent neural networks for stock market timing," Soft Computing, vol. 24, no. 20, pp. 15273–15290, Oct. 2020.
T. Kim and H. Y. Kim, "Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data," PLOS ONE, vol. 14, no. 2, 2019, Art. no. e0212320.
A. H. Bukhari, M. A. Z. Raja, M. Sulaiman, S. Islam, M. Shoaib, and P. Kumam, "Fractional Neuro-Sequential ARFIMA-LSTM for Financial Market Forecasting," IEEE Access, vol. 8, pp. 71326–71338, 2020.
C. Li and G. Qian, "Stock Price Prediction Using a Frequency Decomposition Based GRU Transformer Neural Network," Applied Sciences, vol. 13, no. 1, Dec. 2022, Art. no. 222.
K. Alkhatib, H. Khazaleh, H. A. Alkhazaleh, A. R. Alsoud, and L. Abualigah, "A New Stock Price Forecasting Method Using Active Deep Learning Approach," Journal of Open Innovation: Technology, Market, and Complexity, vol. 8, no. 2, Jun. 2022, Art. no. 96.
J. B. Pandya and U. K. Jaliya, "Opinion and Technical Indicator Based Optimized Deep Learning for Prediction of Stock Market," Indian Journal of Computer Science and Engineering, vol. 12, no. 6, pp. 1860–1874, Dec. 2021.
M. R. Vargas, C. E. M. Dos Anjos, G. L. G. Bichara, and A. G. Evsukoff, "Deep Leaming for Stock Market Prediction Using Technical Indicators and Financial News Articles," in 2018 International Joint Conference on Neural Networks (IJCNN), Rio de Janeiro, Brazil, Jul. 2018, pp. 1–8.
W. Chen, M. Jiang, W. G. Zhang, and Z. Chen, "A novel graph convolutional feature based convolutional neural network for stock trend prediction," Information Sciences, vol. 556, pp. 67–94, May 2021.
T. Uçkan, "Integrating PCA with deep learning models for stock market Forecasting: An analysis of Turkish stocks markets," Journal of King Saud University - Computer and Information Sciences, vol. 36, no. 8, Oct. 2024, Art. no. 102162.
M. A. Quadir et al., "Novel optimization approach for stock price forecasting using multi-layered sequential LSTM," Applied Soft Computing, vol. 134, Feb. 2023, Art. no. 109830.
A. Ghasemieh and R. Kashef, "Deep Learning Vs. Machine Learning in Predicting the Future Trend of Stock Market Prices," in 2021 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Melbourne, Australia, Oct. 2021, pp. 3429–3435.
M. Agrawal, P. Kumar Shukla, R. Nair, A. Nayyar, and M. Masud, "Stock Prediction Based on Technical Indicators Using Deep Learning Model," Computers, Materials & Continua, vol. 70, no. 1, pp. 287–304, 2022.
B. Y. Dwiandiyanta, R. Hartanto, and R. Ferdiana, "Deep Learning in Stock Market Prediction: A Five-Year Literature Review on Developments, Challenges, and Future Directions," Journal of Theoretical and Applied Information Technology, vol. 101, no. 21, 2023.
Downloads
How to Cite
License
Copyright (c) 2025 Bernadectus Yudi Dwiandiyanta, Rudy Hartanto, Ridi Ferdiana
This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.