A novel approach to stock price prediction: averaging open and close prices with LSTM
Muhammad Farhan (),
Afaq Ahmed (),
Hassan Eesaar (),
Kil To Chong () and
Hilal Tayara ()
Additional contact information
Muhammad Farhan: Jeonbuk National University
Afaq Ahmed: Jeonbuk National University
Hassan Eesaar: Jeonbuk National University
Kil To Chong: Jeonbuk National University
Hilal Tayara: Jeonbuk National University
Digital Finance, 2025, vol. 7, issue 3, No 7, 535-551
Abstract:
Abstract Stock price prediction is critical for investors and analysts because it helps them make more informed financial decisions and has a significant impact on investment strategies and market operations. Accurate prediction models are critical in the financial sector for navigating the complexities of market behaviour and maximizing returns. This research introduces a novel approach to stock price prediction by averaging the open and close prices, comparing its effectiveness to the traditional method of using closing prices alone. We employed a deep learning LSTM model for predicting stock prices of three major Korean companies: Samsung Electronics, Naver, and SK Hynix, using data collected from the KOSPI market over a period of 14 years from Yahoo Finance. Our methodology included creating a new feature an average of the open and close prices and evaluating its impact on prediction accuracy. Additionally, we used Optuna for hyperparameter optimization to enhance the model’s performance. The results demonstrate that our approach significantly enhances predictive performance. For example, in the case of Samsung Electronics, the normalized root means square error (RMSE) improved from 0.954 to 0.007, the Mean Absolute Percentage Error (MAPE) decreased from 2.25 to 1.75, and the $$R^2$$ R 2 score increased from 0.949 to 0.962. Similar improvements were observed for Naver and SK Hynix. These findings suggest that averaging open and close prices provides a more accurate representation of daily stock price predictions.
Keywords: Deep learning; LSTM; Stock market; Forecasting; Optuna; Adam (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
http://link.springer.com/10.1007/s42521-025-00151-6 Abstract (text/html)
Access to the full text of the articles in this series is restricted.
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:spr:digfin:v:7:y:2025:i:3:d:10.1007_s42521-025-00151-6
Ordering information: This journal article can be ordered from
https://www.springer.com/finance/journal/42521
DOI: 10.1007/s42521-025-00151-6
Access Statistics for this article
Digital Finance is currently edited by Wolfgang Karl Härdle, Steven Kou and Min Dai
More articles in Digital Finance from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().