This is a preview and has not been published. View submission

Optimization of Stock Predictions on Indonesia Stock Exchange: A New Hybrid Deep Learning Method

Authors

  • Bernadectus Yudi Dwiandiyanta Department of Electrical Engineering and Information Technology, Universitas Gadjah Mada, Yogyakarta, Indonesia | Department of Informatics, Universitas Atma Jaya Yogyakarta, Indonesia
  • Rudy Hartanto Department of Electrical Engineering and Information Technology, Universitas Gadjah Mada, Yogyakarta, Indonesia
  • Ridi Ferdiana Department of Electrical Engineering and Information Technology, Universitas Gadjah Mada, Yogyakarta, Indonesia
Volume: 15 | Issue: 1 | Pages: 19370-19379 | February 2025 | https://doi.org/10.48084/etasr.9363

Abstract

This study presents a new method for predicting stock prices on the Indonesia Stock Exchange (IDX) using a hybrid deep learning model. The proposed model combines historical price data, consisting of open, high, low, and close values, with technical indicators such as Moving Average (MA), Simple Moving Average (SMA), and Exponential Moving Average (EMA). The proposed model offered improved accuracy and efficiency using distinct architectures of Recurrent Neural Network (RNN) and Gated Recurrent Unit (GRU) to process the datasets. The results showed that the proposed hybrid model significantly outperformed traditional single-architecture models in terms of R2, achieving 0.98 for the BBCA stock, surpassing models using only RNN or GRU. In addition, comparable improvements were observed with additional equities, such as the PT. Bank Mandiri Tbk (BMRI) and PT. Bank Negara Indonesia Tbk (BBNI) stocks, achieving an R2 of 0.99, demonstrating the proficiency of the proposed model in capturing the complex dynamics of the stock market. The results demonstrated the significant potential of combining historical data and technical indicators into the modeling procedure to predict stock prices. This process can benefit investors and economic forecasters in the stock market. The results could be further expanded by classifying datasets and investigating different sets of models to improve the performance of financial forecasting.

Keywords:

stock prediction, hybrid deep learning, RNN-GRU, LSTM, technical indicator, Indonesia stock exchange

Downloads

Download data is not yet available.

References

Y. Gu, T. Shibukawa, Y. Kondo, S. Nagao, and S. Kamijo, "Prediction of Stock Performance Using Deep Neural Networks," Applied Sciences, vol. 10, no. 22, Jan. 2020, Art. no. 8142.

A. Thakkar and K. Chaudhari, "A comprehensive survey on deep neural networks for stock market: The need, challenges, and future directions," Expert Systems with Applications, vol. 177, Sep. 2021, Art. no. 114800.

M. Nabipour, P. Nayyeri, H. Jabani, S. S., 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.

S. Deepan, P. S. Reddy, M. Vyshnevy, K. Tejasri, B. Akshaya, and P. Nikhil, "Prediction and Analysis of Stock Markets Using ARIMA Models," in 2024 3rd International Conference on Computational Modelling, Simulation and Optimization (ICCMSO), Phuket, Thailand, Jun. 2024, pp. 268–271.

A. A. Ariyo, A. O. Adewumi, and C. K. Ayo, "Stock Price Prediction Using the ARIMA Model," in 2014 UKSim-AMSS 16th International Conference on Computer Modelling and Simulation, Cambridge, UK, Mar. 2014, pp. 106–112.

H. Herwartz, "Stock return prediction under GARCH — An empirical assessment," International Journal of Forecasting, vol. 33, no. 3, pp. 569–580, Jul. 2017.

T. S. Mian, "Evaluation of Stock Closing Prices using Transformer Learning," Engineering, Technologsty & Applied Science Research, vol. 13, no. 5, pp. 11635–11642, Oct. 2023.

Y. Hua, Z. Zhao, R. Li, X. Chen, Z. Liu, and H. Zhang, "Deep Learning with Long Short-Term Memory for Time Series Prediction," IEEE Communications Magazine, vol. 57, no. 6, pp. 114–119, Jun. 2019.

A. A. Adebiyi, A. O. Adewumi, and C. K. Ayo, "Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction," Journal of Applied Mathematics, vol. 2014, no. 1, 2014, Art. no. 614342.

W. Jiang, "Applications of deep learning in stock market prediction: Recent progress," Expert Systems with Applications, vol. 184, Dec. 2021, Art. no. 115537.

V. D. Ta, C. M. Liu, and D. A. Tadesse, "Portfolio Optimization-Based Stock Prediction Using Long-Short Term Memory Network in Quantitative Trading," Applied Sciences, vol. 10, no. 2, Jan. 2020, Art. no. 437.

M. A. Haq et al., "Analysis of environmental factors using AI and ML methods," Scientific Reports, vol. 12, no. 1, Aug. 2022, Art. no. 13267.

T. B. Shahi, A. Shrestha, A. Neupane, and W. Guo, "Stock Price Forecasting with Deep Learning: A Comparative Study," Mathematics, vol. 8, no. 9, Aug. 2020, Art. no. 1441.

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.

M. C. Lee, "Research on the Feasibility of Applying GRU and Attention Mechanism Combined with Technical Indicators in Stock Trading Strategies," Applied Sciences, vol. 12, no. 3, Jan. 2022, Art. no. 1007.

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.

K. Albeladi, B. Zafar, and A. Mueen, "Time Series Forecasting using LSTM and ARIMA," International Journal of Advanced Computer Science and Applications (IJACSA), vol. 14, no. 1, 2023.

Y. F. Lin, T. M. Huang, W. H. Chung, and Y. L. Ueng, "Forecasting Fluctuations in the Financial Index Using a Recurrent Neural Network Based on Price Features," IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 5, no. 5, pp. 780–791, Jul. 2021.

R. Zhang, "LSTM-based Stock Prediction Modeling and Analysis," presented at the 2022 7th International Conference on Financial Innovation and Economic Development (ICFIED 2022), Mar. 2022, pp. 2537–2542.

C. Ma, Y. Liang, S. Wang, and S. Lu, "Stock linkage prediction based on optimized LSTM model," Multimedia Tools and Applications, vol. 81, no. 9, pp. 12599–12617, Apr. 2022.

P. Ahire, H. Lad, S. Parekh, and S. Kabrawala, "LSTM Based Stock Price Prediction," International Advanced Research Journal in Science, Engineering and Technology, vol. 8, no. 5, 2021.

I. Kalbandi, A. Jare, O. Kale, H. Borole, and S. Navsare, "Stock Market Prediction Using LSTM," International Journal of Advanced Research in Science, Communication and Technology, pp. 123–128, 2021.

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.

C. Chen, L. Xue, and W. Xing, "Research on Improved GRU-Based Stock Price Prediction Method," Applied Sciences, vol. 13, no. 15, Jan. 2023, Art. no. 8813.

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.

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.

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.

K. Kumar and Md. T. U. Haider, "Enhanced Prediction of Intra-day Stock Market Using Metaheuristic Optimization on RNN–LSTM Network," New Generation Computing, vol. 39, no. 1, pp. 231–272, Apr. 2021.

C. Yang, J. Zhai, and G. Tao, "Deep Learning for Price Movement Prediction Using Convolutional Neural Network and Long Short-Term Memory," Mathematical Problems in Engineering, vol. 2020, no. 1, 2020, Art. no. 2746845.

X. Ji, J. Wang, and Z. Yan, "A stock price prediction method based on deep learning technology," International Journal of Crowd Science, vol. 5, no. 1, pp. 55–72, Mar. 2021.

C. Qi, J. Ren, and J. Su, "GRU Neural Network Based on CEEMDAN–Wavelet for Stock Price Prediction," Applied Sciences, vol. 13, no. 12, Jun. 2023, Art. no. 7104.

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.

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.

A. Kelotra and P. Pandey, "Stock Market Prediction Using Optimized Deep-ConvLSTM Model," Big Data, vol. 8, no. 1, pp. 5–24, Feb. 2020.

S. Wang, "A Stock Price Prediction Method Based on BiLSTM and Improved Transformer," IEEE Access, vol. 11, pp. 104211–104223, 2023.

A. Kanwal, M. F. Lau, S. P. H. Ng, K. Y. Sim, and S. Chandrasekaran, "BiCuDNNLSTM-1dCNN — A hybrid deep learning-based predictive model for stock price prediction," Expert Systems with Applications, vol. 202, Sep. 2022, Art. no. 117123.

S. Chen and C. Zhou, "Stock Prediction Based on Genetic Algorithm Feature Selection and Long Short-Term Memory Neural Network," IEEE Access, vol. 9, pp. 9066–9072, 2021.

J. Zhang, L. Ye, and Y. Lai, "Stock Price Prediction Using CNN-BiLSTM-Attention Model," Mathematics, vol. 11, no. 9, Apr. 2023, Art. no. 1985.

J. Kim, H. S. Kim, and S. Y. Choi, "Forecasting the S&P 500 Index Using Mathematical-Based Sentiment Analysis and Deep Learning Models: A FinBERT Transformer Model and LSTM," Axioms, vol. 12, no. 9, Sep. 2023, Art. no. 835.

Y. Chen, J. Wu, and Z. Wu, "China’s commercial bank stock price prediction using a novel K-means-LSTM hybrid approach," Expert Systems with Applications, vol. 202, Sep. 2022, Art. no. 117370.

Z. K. Mansoor and A. Y. Al-Sultan, "Enhancing Stock Price Prediction Using Mutual Information, PCA, and LSTM: A Deep Learning Approach," Fusion: Practice and Applications, no. Issue 1, pp. 196–208, Jan. 2025.

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, pp. 7033–7051, 2023.

M. Li, Y. Zhu, Y. Shen, and M. Angelova, "Clustering-enhanced stock price prediction using deep learning," World Wide Web, vol. 26, no. 1, pp. 207–232, Jan. 2023.

Z. Fathali, Z. Kodia, and L. Ben Said, "Stock Market Prediction of NIFTY 50 Index Applying Machine Learning Techniques," Applied Artificial Intelligence, vol. 36, no. 1, Dec. 2022, Art. no. 2111134.

A. H. Manurung, W. Budiharto, and H. Prabowo, "Algorithm and Modeling of Stock Prices Forecasting Based on Long Short-Term Memory (LSTM)," ICIC Express Letters, vol. 12, no. 12, pp. 1277–1283, 2018.

K. Kumar and D. P. Gandhmal, "An intelligent indian stock market forecasting system using LSTM deep learning," Indonesian Journal of Electrical Engineering and Computer Science, vol. 21, no. 2, pp. 1082–1089, Feb. 2021.

D. Satria, "Predicting Banking Stock Prices Using RNN, LSTM, and GRU Approach," Applied Computer Science, vol. 19, no. 1, pp. 82–94, Mar. 2023.

J. Nayak, P. B. Dash, B. Naik, S. Mohapatra, and A. R. Routray, "Deep Learning-Based Trend Analysis on Indian Stock Market in COVID-19 Pandemic Scenario and Forecasting Future Financial Drift," Journal of The Institution of Engineers (India): Series B, vol. 103, no. 5, pp. 1459–1478, Oct. 2022.

Downloads

How to Cite

[1]
Dwiandiyanta, B.Y., Hartanto, R. and Ferdiana, R. 2025. Optimization of Stock Predictions on Indonesia Stock Exchange: A New Hybrid Deep Learning Method. Engineering, Technology & Applied Science Research. 15, 1 (Feb. 2025), 19370–19379. DOI:https://doi.org/10.48084/etasr.9363.

Metrics

Abstract Views: 142
PDF Downloads: 55

Metrics Information