The cryptocurrency market is experiencing rapid growth in the world. The high fluctuation and volatility of cryptocurrency prices and the complexity of non-linear relationships in data patterns attract investors and researchers who want to develop accurate cryptocurrency price forecasting models. This research aims to build a cryptocurrency forecasting model with a machine learning-based time series approach using the gated recurrent units (GRU) algorithm. The dataset used is historical Bitcoin closing price data from January 1, 2017, to July 31, 2024. Based on the gap in previous research, the selected model is only based on the accuracy value. In this study, the chosen model must fulfill two criteria: the best-fitting model based on the learning curve diagnosis and the model with the best accuracy value. The selected model is used to forecast the test data. Model selection with these two criteria has resulted in high accuracy in model performance. This research was highly accurate for all tested models with MAPE < 10%. The GRU 30-50 model is best tested with MAE = 867.2598, RMSE = 1330.427, and MAPE = 1.95%. Applying the sliding window technique makes the model accurate and fast in learning the pattern of time series data, resulting in a best-fitting model based on the learning curve diagnosis.
Copyrights © 2025