Stock price forecasting in Indonesia stock exchange using deep learning: A comparative study

Agus Tri Haryono, Riyanarto Sarno*, Kelly Rossa Sungkono

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review


In 2022, the Indonesia stock exchange (IDX) listed 825 companies, making it challenging to identify low-risk companies. Stock price forecasting and price movement prediction are vital issues in financial works. Deep learning has previously been implemented for stock market analysis, with promising results. Because of the differences in architecture and stock issuers in each study report, a consensus on the best stock price forecasting model has yet to be reached. We present a methodology for comparing the performance of convolutional neural networks (CNN), gated recurrent units (GRU), long short-term memory (LSTM), and graph convolutional networks (GCN) layers. The four layers types combination yields 11 architectures with two layers stacked maximum, and the architectures are performance compared in stock price predicting. The dataset consists of open, highest, lowest, closed price, and volume transactions and has 2,588,451 rows from 727 companies in IDX. The best performance architecture was chosen by a vote based on the coefficient of determination (R2), mean squared error (MSE), root mean square error (RMSE), mean absolute percent error (MAPE), and f1-score. TFGRU is the best architecture, producing the finest results on 315 companies with an average score of RMSE is 553.327, MAPE is 0.858, and f1-score is 0.456.

Original languageEnglish
Pages (from-to)861-869
Number of pages9
JournalInternational Journal of Electrical and Computer Engineering
Issue number1
Publication statusPublished - Feb 2024


  • Benchmark deep learning
  • Gated recurrent units
  • Indonesia stock exchange
  • Stock price forecasting
  • Trend evaluation


Dive into the research topics of 'Stock price forecasting in Indonesia stock exchange using deep learning: A comparative study'. Together they form a unique fingerprint.

Cite this