IDEAS home Printed from https://ideas.repec.org/a/pal/palcom/v11y2024i1d10.1057_s41599-024-02807-x.html
   My bibliography  Save this article

Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam

Author

Listed:
  • Tran Phuoc

    (Ho Chi Minh City of University of Food Industry
    Hochiminh City University of Industry and Trade)

  • Pham Thi Kim Anh

    (Ho Chi Minh City of University of Food Industry
    Hochiminh City University of Industry and Trade)

  • Phan Huy Tam

    (University of Economics and Law
    Vietnam National University)

  • Chien V. Nguyen

    (Thu Dau Mot University)

Abstract

The aims of this study are to predict the stock price trend in the stock market in an emerging economy. Using the Long Short Term Memory (LSTM) algorithm, and the corresponding technical analysis indicators for each stock code include: simple moving average (SMA), convergence divergence moving average (MACD), and relative strength index (RSI); and the secondary data from VN-Index and VN-30 stocks, the research results showed that the forecasting model has a high accuracy of 93% for most of the stock data used, demonstrating the appropriateness of the LSTM model and the test set data is used to evaluate the model’s performance. The research results showed that the forecasting model has a high accuracy of 93% for most of the stock data used, demonstrating the appropriateness of the LSTM model in analyzing and forecasting stock price movements on the machine learning platform.

Suggested Citation

  • Tran Phuoc & Pham Thi Kim Anh & Phan Huy Tam & Chien V. Nguyen, 2024. "Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam," Palgrave Communications, Palgrave Macmillan, vol. 11(1), pages 1-18, December.
  • Handle: RePEc:pal:palcom:v:11:y:2024:i:1:d:10.1057_s41599-024-02807-x
    DOI: 10.1057/s41599-024-02807-x
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1057/s41599-024-02807-x
    File Function: Abstract
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1057/s41599-024-02807-x?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 search for a different version of it.

    References listed on IDEAS

    as
    1. Jaydip SEN & Tamal DATTA CHAUDHURI, 2016. "An Alternative Framework for Time Series Decomposition and Forecastingand its Relevance for Portfolio Choice – A Comparative Study of the Indian Consumer Durable and Small Cap Sectors," Journal of Economics Library, KSP Journals, vol. 3(2), pages 303-326, June.
    2. Alessio Emanuele Biondo & Alessandro Pluchino & Andrea Rapisarda & Dirk Helbing, 2013. "Are Random Trading Strategies More Successful than Technical Ones?," PLOS ONE, Public Library of Science, vol. 8(7), pages 1-13, July.
    3. Trinh, Hai Hong & Nguyen, Canh Phuc & Hao, Wei & Wongchoti, Udomsak, 2021. "Does stock liquidity affect bankruptcy risk? DID analysis from Vietnam," Pacific-Basin Finance Journal, Elsevier, vol. 69(C).
    4. Sidra Mehtab & Jaydip Sen, 2019. "A Robust Predictive Model for Stock Price Prediction Using Deep Learning and Natural Language Processing," Papers 1912.07700, arXiv.org.
    5. Jaydip Sen & Tamal Datta Chaudhuri, 2018. "Understanding the sectors of Indian economy for portfolio choice," International Journal of Business Forecasting and Marketing Intelligence, Inderscience Enterprises Ltd, vol. 4(2), pages 178-222.
    6. A. E. Biondo & A. Pluchino & A. Rapisarda & D. Helbing, 2013. "Are random trading strategies more successful than technical ones?," Papers 1303.4351, arXiv.org, revised Jul 2013.
    7. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    8. Suzanne Fifield & David Power & C. Donald Sinclair, 2005. "An analysis of trading strategies in eleven European stock markets," The European Journal of Finance, Taylor & Francis Journals, vol. 11(6), pages 531-548.
    9. Brock, William & Lakonishok, Josef & LeBaron, Blake, 1992. "Simple Technical Trading Rules and the Stochastic Properties of Stock Returns," Journal of Finance, American Finance Association, vol. 47(5), pages 1731-1764, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    2. Jaydip Sen & Subhasis Dasgupta, 2023. "Portfolio Optimization: A Comparative Study," Papers 2307.05048, arXiv.org.
    3. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using CNN and LSTM-Based Deep Learning Models," Papers 2010.13891, arXiv.org.
    4. Yan Li & Bo Zheng & Ting-Ting Chen & Xiong-Fei Jiang, 2017. "Fluctuation-driven price dynamics and investment strategies," PLOS ONE, Public Library of Science, vol. 12(12), pages 1-15, December.
    5. Ana Rita Gonzaga & Helder Sebastião, 2012. "As Ações Portuguesas Seguem um Random Walk? Implicações para a Eficiência de Mercado e para a Definição de Estratégias de Transação," GEMF Working Papers 2012-02, GEMF, Faculty of Economics, University of Coimbra.
    6. N'yoma Diamond & Grant Perkins, 2022. "Using Intermarket Data to Evaluate the Efficient Market Hypothesis with Machine Learning," Papers 2212.08734, arXiv.org, revised Dec 2022.
    7. Sidra Mehtab & Jaydip Sen & Abhishek Dutta, 2020. "Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models," Papers 2009.10819, arXiv.org.
    8. Farhang Niroomand & Massoud Metghalchi & Massomeh Hajilee, 2020. "Efficient market hypothesis: a ruinous implication for Portugese stock market," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 44(4), pages 749-763, October.
    9. Ni, Yensen & Liao, Yi-Ching & Huang, Paoyu, 2015. "MA trading rules, herding behaviors, and stock market overreaction," International Review of Economics & Finance, Elsevier, vol. 39(C), pages 253-265.
    10. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Timeseries," Papers 2001.09769, arXiv.org.
    11. Batten, Jonathan A. & Lucey, Brian M. & McGroarty, Frank & Peat, Maurice & Urquhart, Andrew, 2018. "Does intraday technical trading have predictive power in precious metal markets?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 52(C), pages 102-113.
    12. Urquhart, Andrew & Gebka, Bartosz & Hudson, Robert, 2015. "How exactly do markets adapt? Evidence from the moving average rule in three developed markets," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 38(C), pages 127-147.
    13. Abhiraj Sen & Jaydip Sen, 2023. "Performance Evaluation of Equal-Weight Portfolio and Optimum Risk Portfolio on Indian Stocks," Papers 2309.13696, arXiv.org.
    14. Jaydip Sen & Saikat Mondal & Sidra Mehtab, 2021. "Analysis of Sectoral Profitability of the Indian Stock Market Using an LSTM Regression Model," Papers 2111.04976, arXiv.org.
    15. Piekunko-Mantiuk Iwona, 2019. "Parameterized Trade on the Futures Market on the WIG20," Folia Oeconomica Stetinensia, Sciendo, vol. 19(1), pages 114-125, June.
    16. Ananda Chatterjee & Hrisav Bhowmick & Jaydip Sen, 2021. "Stock Price Prediction Using Time Series, Econometric, Machine Learning, and Deep Learning Models," Papers 2111.01137, arXiv.org.
    17. Sidra Mehtab & Jaydip Sen, 2020. "A Time Series Analysis-Based Stock Price Prediction Using Machine Learning and Deep Learning Models," Papers 2004.11697, arXiv.org, revised May 2021.
    18. Sensoy, Ahmet & Tabak, Benjamin M., 2015. "Time-varying long term memory in the European Union stock markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 436(C), pages 147-158.
    19. Bariviera, Aurelio F. & Font-Ferrer, Alejandro & Sorrosal-Forradellas, M. Teresa & Rosso, Osvaldo A., 2019. "An information theory perspective on the informational efficiency of gold price," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    20. Luna-Ramirez, Susana & Agudelo, Diego A., 2019. "¿Agrega Valor el Modelo Black-Litterman en Portafolios del Mercado Integrado Latinoamericano (MILA)? Evaluación Empírica 2008-2016 || Does the Black-Litterman Model Add Value in Portfolios of the Inte," Revista de Métodos Cuantitativos para la Economía y la Empresa = Journal of Quantitative Methods for Economics and Business Administration, Universidad Pablo de Olavide, Department of Quantitative Methods for Economics and Business Administration, vol. 27(1), pages 55-73, June.

    More about this item

    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:pal:palcom:v:11:y:2024:i:1:d:10.1057_s41599-024-02807-x. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: https://www.nature.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.