Aplikasi G-Trend Berbasis LSTM untuk Prediksi Trend Continuation dan Pengambilan Keputusan Investasi Emas
DOI:
https://doi.org/10.35746/jtim.v8i4.1230Keywords:
Gold, Long Short-Term Memory, Multi-horizon prediction, Chatbot, Trend ContinuationAbstract
Gold is widely regarded as a safe-haven investment with high daily volatility, making it difficult for investors to time transactions without objective projection tools. This study develops G-Trend, a web-based system that projects gold prices in Rupiah per gram and derives a trend continuation signal at daily and weekly horizons, complemented by an interactive chatbot. The system uses a two-layer Long Short-Term Memory (LSTM) model and a Flask backend that retrieves data directly from financial APIs without a permanent database. The chatbot, built on the Gemini API, explains the model outputs to users. On the test data, the daily model achieved an RMSE of Rp 39,517, a MAPE of 1.26%, and an R2 of 0.9904, while the weekly model achieved an RMSE of Rp 73,353, a MAPE of 2.51%, and an R2 of 0.9636. However, these errors are comparable to naive and drift baselines, so no price accuracy advantage is claimed. In an out-of-sample test over 22 trading days, directional accuracy was 72.7%. The contribution of this study lies in integrating daily and weekly predictions, trend continuation signals, and an explanatory chatbot into a single web system that can serve as an informational aid for gold investors.
Downloads
References
T. G. Lasijan, R. Santoso, and A. R. Hakim, “Prediksi Harga Emas Dunia Menggunakan Metode Long- Short Term Memory,” Jurnal Gaussian, vol. 12, no. 2, pp. 287–295, 2023. https://doi.org/10.14710/j.gauss.12.2.287-295.
M. N. Taukid, Y. V. Via, and E. Y. Puspaningrum, “Implementasi Bilstm Dan Cuckoo Search Optimization Pada Aplikasi Prediksi Harga Emas Antam,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 3, pp. 5499–5506, 2025. https://doi.org/10.36040/jati.v9i3.14310.
J. K. Sulaiman and T. Haryanto, “Pemanfaatan Model Long Short Term Memory (LSTM) Untuk Prediksi Harga Emas Sebagai Instrumen Investasi Dalam Mempersiapkan Ancaman Resesi Global 2023,” Indonesian Journal of Computer Science Attribution, vol. 12, no. 2, pp. 614–621. https://doi.org/10.33022/ijcs.v12i2.3176.
M. R. Pahlevi and D. W. Nugraha, “Pengembangan Sistem Prediksi Harga Emas Real-Time Berbasis Lstm Untuk Optimalisasi Waktu Investasi Bisnis Info Artikel Abstrak,” Business Journal, vol. 11, no. 1, pp. 20–33, 2025. https://doi.org/10.25124/jbs.v11i1.10777.
R. A. Dalimuthe, R. T. Adek, and C. Agusniar, “Prediksi Harga Emas Menggunakan Algoritma Long Short- Term Memory (Lstm),” in Prosiding Seminar Nasional Teknologi dan Teknik Informatika (SENASTIKA), vol. 1, 2024. https://proceedings.unimal.ac.id/senastika/article/view/852/.
S. Amryliana, S. Bahri, and M. R. Alfian, “Optimization of Long Short Term Memory Model for Gold Price Prediction Using Adaptive Moment Estimation,” Jurnal Matematika, Statistika dan Komputasi, vol. 21, no. 3, pp. 669–683, 2025. https://doi.org/10.20956/j.v21i3.42872.
M. Hadrianto, A. N. I. Rahman, A. S. Haris, A. Juzril, and N. Rahmadani, “Prediksi Harga Emas Meng- gunakan Algoritma Long-Short Term Memory dengan Optimasi Adaptive Momen Estimation,” Faktor Exacta, vol. 18, no. 2, p. 183, 2025. https://doi.org/10.30998/faktorexacta.v18i2.26841.
R. Septiana et al., “Prediksi Harga Emas Indonesia Menggunakan Model CNN-LSTM,” Infomatek, vol. 27, no. 1, pp. 131–138, 2025. https://doi.org/10.23969/infomatek.v27i1.24417.
A. Primawati, F. A. Mustika, and Y. Wibawanti, “Analisis Tren Dan Prediksi Harga Emas Menggunakan Prophet Dan Long Short Term Memory (LSTM),” Jurnal SIMETRIS, vol. 16, no. 2, pp. 1–15, 2025. https://doi.org/10.24176/simet.v16i2.15580.
A. Tholib, N. K. Agusmawati, and F. Khoiriyah, “Prediksi Harga Emas Menggunakan Metode LSTM Dan GRU,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 11, no. 3, pp. 620–627, 2023. https://doi.org/10.23960/jitet.v11i3.3250.
T. Handhayani, C. Tanudy, and J. Hendryli, “Prediksi Harga Emas di Indonesia Menggunakan Gated Recurrent Unit,” Jurnal Fasilkom, vol. 13, no. 3, pp. 480–488, 2023. https://doi.org/10.37859/jf.v13i3.6185.
D. Soyusiawaty and F. G. Putra, “Pengembangan chatbot untuk layanan Pimpinan Daerah Muhammadiyah Kota Yogyakarta menggunakan metode rule-based,” J. Penerapan Sist. Inf.(Komputer Manajemen), vol. 4, no. 2, pp. 354–363, 2023.
M. R. S. Alfarizi, M. Z. Al-farish, M. Taufiqurrahman, G. Ardiansah, and M. Elgar, “Penggunaan Python sebagai bahasa pemrograman untuk machine learning dan deep learning,” Karya Ilmiah Mahasiswa Bertauhid (KARIMAH TAUHID), vol. 2, no. 1, pp. 1–6, 2023. https://ojs.unida.info/karimahtauhid/article/view/7518.
R. Jonathan and N. Setiyawati, “Implementasi Framework Flask Pada Pembangunan Aplikasi Monitoring Dan Store Visit It Support Pada Pt. Xyz,” Jurnal Informatika, vol. 23, no. 01, pp. 91–101, 2023. https://doi.org/10.30873/ji.v23i1.3637.
N. Rachmat and D. P. Kesuma, “Implementasi LLM Gemini Pada Pengembangan Aplikasi Chatbot Ber- basis Android,” Jurnal Ilmu Komputer (JUIK), vol. 4, no. 1, pp. 40–52, 2024. https://journal.umgo.ac.id/index.php/juik/article/view/2831.
F. Defina, S. Alhamdani, G. I. Marthasari, C. Sri, and K. Aditya, “Prediksi Harga Emas Menggunakan Metode Time Series Long Short-Term Memory Neural Network,” REPOSITOR, vol. 3, no. 4, pp. 375–386, 2021. https://ejournal.umm.ac.id/index.php/repositor/article/view/31959.
M. O. G. Sibannang and I. G. N. L. Wijayakusuma, “Implementation of LSTM for Gold Price Prediction in Indonesia,” Journal of Applied Informatics and Computing, vol. 10, no. 1, pp. 964–968, 2026. https://doi.org/10.30871/jaic.v10i1.11860.
Z. V. Hendra, M. A. Ramadhani, I. Chintya, Y. Rahmatullah, and E. Ismanto, “Prediksi Harga Emas Menggunakan Algoritma Long Short Term Memory (LSTM) & Gated Recurrent Unit (GRU),” Journal of Software Engineering and Information System (SEIS), vol. 6, no. 1, pp. 31–37, 2026. https://ejurnal.umri.ac.id/index.php/SEIS/article/view/9809.
R. Fitria, R. P. Tulodo, and A. Sofyan, “Pemanfaatan chatbot untuk informasi pendaftaran calon mahasiswa baru di perguruan tinggi,” IT-Explore: Jurnal Penerapan Teknologi Informasi Dan Komunikasi, vol. 4, no. 2, pp. 221–232, 2025. https://doi.org/10.24246/itexplore.v4i2.2025.pp221-232.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Alwi Syahri Arjuna, Ledy Elsera Astrianty

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.






