Web-Based Real-Time Gold Price Forecasting System for the Next 5 Years in Indonesia Using Prophet Method

Penulis

  • Muhammad Syahri Romadhoni Penulis
  • Qorin Sifa Ekafasba Penulis

Kata Kunci:

Gold Price Forecasting, Prophet Method, Time Series, Yahoo Finance, Prediction Accuracy

Abstrak

Fluctuations in global gold prices driven by global economic conditions, exchange rates, inflation, and international market dynamics often make it difficult for investors to determine the optimal time to buy or sell gold. Meanwhile, manual prediction approaches are inherently subjective and prone to error. This research aims to design and develop a web-based gold price forecasting system capable of providing real-time predictions for gold prices in Indonesia over the next five years, utilizing the Prophet method. The system automatically retrieves historical global gold price data from Yahoo Finance via the `yfinance` library, converts the values into Indonesian Rupiah per gram, and processes them through the Prophet model which accounts for trend, seasonality, holidays, and error components. The system is built using the Laravel framework with a MySQL database and features interactive data visualizations, as well as the ability to download reports in PDF format. Functionality was verified through black-box testing, while model accuracy was evaluated using four metrics: MAPE, MAE, RMSE, and R². The results demonstrate excellent model performance, with a MAPE of 1.87%, an MAE of 41.57, an RMSE of 55.90, and an R² of 0.9916 indicating that the model can explain over 99% of the historical variation in gold prices. This system is intended to serve as a reliable tool for investors and the general public, facilitating more accurate, efficient, and data-driven analysis and decision-making regarding gold investments.

Referensi

[1] Y. Purwanti, "Analisis Pengaruh Harga Emas, Nilai Tukar Rupiah dan Suku Bunga terhadap Derajat Persistensi Inflasi Jawa Barat," Govstat, vol. 1, no. 1, pp. 43–52, 2022.

[2] [2] A. Primawati and A. A. Trinoto, "Evaluasi Kinerja Prophet untuk Prediksi Harga Emas Berjangka," Faktor Exacta, vol. 17, no. 1, 2024.

[3] [3] M. Rizky Aulia Hrp, M. Hasanah, F. Juanda Sitepu, and A. Hasudungan Lubis, "Prediksi Harga Emas Antam dengan Menggunakan Algoritma Prophet Melalui Optimasi Hyperparameter Menggunakan Bat Algorithm," Prosiding Seminar Nasional Teknologi Komputer dan Sains, vol. 3, no. 1, pp. 394–405, 2025.

[4] [4] B. Jange, "Prediksi Harga Saham Bank BCA Menggunakan Prophet," Journal of Trends Economics and Accounting Research, vol. 2, no. 1, pp. 1–5, Sep. 2021.

[5] [5] V. Ashri, N. Sugianto, G. Ahnaf Danarwindu, and H. Prihatmoko, "Perbandingan Metode Peramalan Volume Transaksi Sistem Resi Gudang: Prophet, Exponential Smoothing dan Sarima," Emerging Statistics and Data Science Journal, vol. 3, no. 2, 2025.

[6] [6] M. T. Hidayat and M. Sulistiyono, "Analisis Performa Algoritma XGBoost, GRU, dan Prophet dalam Peramalan Penjualan Obat untuk Optimasi Rantai Pasok Farmasi," Jurnal Pendidikan dan Teknologi Indonesia, vol. 5, no. 1, 2025.

[7] [7] H. Sulastri, G. Saeful Anwar, E. Nur, and F. Dewi, "Peramalan Stok Barang Percetakan dan ATK Menggunakan Single Moving Average," JURTI, vol. 7, no. 1, 2023.

[8] [8] N. L. Sari and T. Hasanuddin, "Analisis Performa Metode Moving Average Model untuk Prediksi Jumlah Penderita Covid-19," Indonesian Journal of Data and Science (IJODAS), vol. 1, no. 3, pp. 87–95, 2020.

[9] Taylor, S. J., and B. Letham, “Forecasting at Scale,” The American Statistician, vol. 72, no. 1, pp. 37–45, 2018, doi: 10.1080/00031305.2017.1380080.

Diterbitkan

2026-10-29

Terbitan

Bagian

Articles