Predicting Stock Market Trends Based on Moving Average Using LSTM Algorithm

Prediction of the stock market is highly needed to assist traders in making decisions. Many methods are used by traders to predict this such as technical analysis and moving averages. Moving averages predict stock trends based on the past data of the stock. The disadvantage of using a moving average analysis is the delay in crossover signals. As a solution, a deep learning technique known as LSTM is applied to the moving average strategy in this paper. In this research, the BBCA stock dataset spanning from 2010 to 2018 was utilized. The data was segmented into two parts: 2010-2017 for training data and 2018 for testing data. The training process employed Long Short-Term Memory (LSTM) networks, with the subsequent results being combined with moving average crossover techniques. Validation results indicate that BBCA shows a relatively minimal error. BBCA's average MAPE is 1.1%, and its RMSE is 65.402, classifying it within the "Highly Accurate Forecasting" category. Various combinations of moving average crossovers were tested during model training, with the combination of SMA05 and SMA50 for BBCA yielding the highest profit potential. Stocks that exhibit a downward trend are more likely to incur substantial losses. The model can predict the reversal of trends by predicting the trading signal given by the moving averages.

Authors

Institutions

Publication Details

Journal
CogITo Smart Journal
Published
2024-12-31
DOI
https://doi.org/10.31154/cogito.v10i2.648.486-495
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Stock Market Trends Based on Moving Average Using LSTM Algorithm

Nova Eka Budiyanta, Veronica Windha Mahyastuty, Maria Angela Kartawidjaja, Karel Octavianus Bachri et al.
CogITo Smart Journal
Stock Market Forecasting Methods
article

Predicting Stock Market Trends Based on Moving Average Using LSTM Algorithm

Nova Eka Budiyanta, Veronica Windha Mahyastuty, Maria Angela Kartawidjaja, Karel Octavianus Bachri, Rizki Surya Permana
article en

Abstract

Prediction of the stock market is highly needed to assist traders in making decisions. Many methods are used by traders to predict this such as technical analysis and moving averages. Moving averages predict stock trends based on the past data of the stock. The disadvantage of using a moving average analysis is the delay in crossover signals. As a solution, a deep learning technique known as LSTM is applied to the moving average strategy in this paper. In this research, the BBCA stock dataset spanning from 2010 to 2018 was utilized. The data was segmented into two parts: 2010-2017 for training data and 2018 for testing data. The training process employed Long Short-Term Memory (LSTM) networks, with the subsequent results being combined with moving average crossover techniques. Validation results indicate that BBCA shows a relatively minimal error. BBCA's average MAPE is 1.1%, and its RMSE is 65.402, classifying it within the "Highly Accurate Forecasting" category. Various combinations of moving average crossovers were tested during model training, with the combination of SMA05 and SMA50 for BBCA yielding the highest profit potential. Stocks that exhibit a downward trend are more likely to incur substantial losses. The model can predict the reversal of trends by predicting the trading signal given by the moving averages.

CogITo Smart JournalVol. 10(2)
Atma Jaya Catholic University of Indonesia (ID)
Universitas Indonesia, Universitas Katolik Indonesia Atma Jaya
Openalex Percentile: Top 67%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.