Humanities & Social Sciences Communications (Mar 2024)

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

  • Tran Phuoc,
  • Pham Thi Kim Anh,
  • Phan Huy Tam,
  • Chien V. Nguyen

DOI
https://doi.org/10.1057/s41599-024-02807-x
Journal volume & issue
Vol. 11, no. 1
pp. 1 – 18

Abstract

Read online

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.