IDEAS home Printed from https://ideas.repec.org/a/spr/digfin/v7y2025i3d10.1007_s42521-025-00151-6.html
   My bibliography  Save this article

A novel approach to stock price prediction: averaging open and close prices with LSTM

Author

Listed:
  • Muhammad Farhan

    (Jeonbuk National University)

  • Afaq Ahmed

    (Jeonbuk National University)

  • Hassan Eesaar

    (Jeonbuk National University)

  • Kil To Chong

    (Jeonbuk National University
    Jeonbuk National University)

  • Hilal Tayara

    (Jeonbuk National University)

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.

Suggested Citation

  • Muhammad Farhan & Afaq Ahmed & Hassan Eesaar & Kil To Chong & Hilal Tayara, 2025. "A novel approach to stock price prediction: averaging open and close prices with LSTM," Digital Finance, Springer, vol. 7(3), pages 535-551, September.
  • Handle: RePEc:spr:digfin:v:7:y:2025:i:3:d:10.1007_s42521-025-00151-6
    DOI: 10.1007/s42521-025-00151-6
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s42521-025-00151-6
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s42521-025-00151-6?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:digfin:v:7:y:2025:i:3:d:10.1007_s42521-025-00151-6. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.