Melola Discovery

← Melola Discovery

Journal

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

Recursive Journal of Informatics · Vol. 3 No. 2 (2025) · pp. 85–92

DOI
10.15294/rji.v3i2.945
ISSN
2986-6588, 2963-5551
Published
2025-10-17
Publisher
Universitas Negeri Semarang
Language
eng

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.

Keywords

Collaboration network of the authors

23 authors · 64 co-authorship links

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • State University of Semarang
  • Affiliation unknown
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
Arif WidiyatmokoState University of Semarang3
Muhamad TaufiqState University of Semarang2
Melissa Salma DarmawanState University of Semarang2
Indah Urwatin WusqoState University of Semarang2
Rima Ayu CahyaniState University of Semarang2
Dela Rista DamayantiState University of Semarang2
Renita Arianti HapsariState University of Semarang2
Fathan ArsyadaniState University of Semarang2
Wahyu HardyantoState University of Semarang2
Epafraditus MemorianoState University of Semarang1
Agung LaksonoState University of Semarang1
Alfat MutoriqState University of Semarang1
Syuja Zhafran Rakha KrishandhieState University of Semarang1
Kholiq BudimanState University of Semarang1
Fitri Arum SasiState University of Semarang1
Nila Prasetya AryaniAffiliation unknown1
Defin AndestianAffiliation unknown1
SugiyantoAffiliation unknown1
Wahyu SetyaningrumAffiliation unknown1
M Fadil MardiansyahAffiliation unknown1
Muhamad Anbiya Nur IslamAffiliation unknown1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/rji/oai, first harvested 6 Nov 2026, last seen 8 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Selection of Trading Indicators Using Machine Learning and Stock Close Price Prediction with the Long Short Term Memory Method</dc:title>
	<dc:creator xml:lang="en">Rafli, Alfandy Himawan Bagus</dc:creator>
	<dc:creator xml:lang="en">Purwinarko, Aji </dc:creator>
	<dc:subject xml:lang="en">Long Short Term Memory  </dc:subject>
	<dc:subject xml:lang="en">Stock</dc:subject>
	<dc:subject xml:lang="en">Prediction </dc:subject>
	<dc:subject xml:lang="en">Historical Data</dc:subject>
	<dc:subject xml:lang="en">trading</dc:subject>
	<dc:subject xml:lang="en">machine learning</dc:subject>
	<dc:description xml:lang="en">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.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2025-10-17</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/rji/article/view/945</dc:identifier>
	<dc:identifier>10.15294/rji.v3i2.945</dc:identifier>
	<dc:source xml:lang="en">Recursive Journal of Informatics; Vol. 3 No. 2 (2025): September 2025; 85-92</dc:source>
	<dc:source>2986-6588</dc:source>
	<dc:source>2963-5551</dc:source>
	<dc:source>10.15294/rji.v3i2</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/rji/article/view/945/6206</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2025 Recursive Journal of Informatics</dc:rights>
</oai_dc:dc>