Selection of Trading Indicators Using Machine Learning and Stock Close Price Prediction with the Long Short Term Memory Method

Abstract. Humans have a limit to their physical ability to work, so investment is needed to meet their needs and other goals according to their wants and needs. Investment has many types and risks according to the portion of the return value, such as mutual funds, bonds and stocks. Stocks are a form of investment that has a high risk because of the rapid fluctuations in stock values. Prediction of stock movements is usually assisted by indicators, but predictions using indicators require complex analysis because of the diverse periods and different movements in each stock data case. Purpose: To predict the closing price of BBCA and BBRI shares in the next 10 days by considering the count of technical indicators in the form of Moving average (MA), Exponential moving average (EMA), Rate Of Change (ROC), Price Momentum, Relative Strength Index (RSI), Stochastic Oscillator in periods 21, 63 and 252. Methods/Study design/approach: This research was conducted by comparing the accuracy of Random Forest, Decision Tree, KNN, SVM using K-fold Cross Validation then the method with the best accuracy was used to find out how much velue from the trading indicators used and predict the closing price of shares per day at BBRI and BBCA companies for the next 10 day period using the LSTM algorithm. Result/Findings: The best accuracy in the k-fold cross validation process is random forest. random forest is used to train indicator data in determining 5 indicators along with the period that has the highest value, in this test it produces values on BBCA data in order, namely ROC63, RSI63, MOM63, MA252, EMA21 while on BBRI data in order, namely ROC63, MOM63, RSI63, MA252, MA21. This indicator is used in the price forecasting process with the LSTM method to determine the closing price in the next 10 days. The LSTM method in this study resulted in 96.8% accuracy for BBCA and 96.4% accuracy for BBRI. Novelty/Originality/Value: The forecasting accuracy on BBCA is 96.8% and the forecasting accuracy on BBRI is 96.4%. This shows that the accuracy results are classified as good because the prediction results are close to the actual results. The data training process is expected to help traders in making stock buying and selling decisions that are adjusted to the fundamental aspects of the company.

Authors

Institutions

Publication Details

Journal
Recursive Journal of Informatics
Published
2025-09-29
DOI
https://doi.org/10.15294/rji.v3i2.945
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Selection of Trading Indicators Using Machine Learning and Stock Close Price Prediction with the Long Short Term Memory Method

Aji Purwinarko, Alfandy Himawan Bagus Rafli
Recursive Journal of Informatics
Stock Market Forecasting Methods
article

Selection of Trading Indicators Using Machine Learning and Stock Close Price Prediction with the Long Short Term Memory Method

Aji Purwinarko, Alfandy Himawan Bagus Rafli
article en

Abstract

Abstract. Humans have a limit to their physical ability to work, so investment is needed to meet their needs and other goals according to their wants and needs. Investment has many types and risks according to the portion of the return value, such as mutual funds, bonds and stocks. Stocks are a form of investment that has a high risk because of the rapid fluctuations in stock values. Prediction of stock movements is usually assisted by indicators, but predictions using indicators require complex analysis because of the diverse periods and different movements in each stock data case. Purpose: To predict the closing price of BBCA and BBRI shares in the next 10 days by considering the count of technical indicators in the form of Moving average (MA), Exponential moving average (EMA), Rate Of Change (ROC), Price Momentum, Relative Strength Index (RSI), Stochastic Oscillator in periods 21, 63 and 252. Methods/Study design/approach: This research was conducted by comparing the accuracy of Random Forest, Decision Tree, KNN, SVM using K-fold Cross Validation then the method with the best accuracy was used to find out how much velue from the trading indicators used and predict the closing price of shares per day at BBRI and BBCA companies for the next 10 day period using the LSTM algorithm. Result/Findings: The best accuracy in the k-fold cross validation process is random forest. random forest is used to train indicator data in determining 5 indicators along with the period that has the highest value, in this test it produces values on BBCA data in order, namely ROC63, RSI63, MOM63, MA252, EMA21 while on BBRI data in order, namely ROC63, MOM63, RSI63, MA252, MA21. This indicator is used in the price forecasting process with the LSTM method to determine the closing price in the next 10 days. The LSTM method in this study resulted in 96.8% accuracy for BBCA and 96.4% accuracy for BBRI. Novelty/Originality/Value: The forecasting accuracy on BBCA is 96.8% and the forecasting accuracy on BBRI is 96.4%. This shows that the accuracy results are classified as good because the prediction results are close to the actual results. The data training process is expected to help traders in making stock buying and selling decisions that are adjusted to the fundamental aspects of the company.

Recursive Journal of InformaticsVol. 3(2)
State University of Semarang (ID)
Openalex Percentile: Top 69%
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.