Currency Exchange Rate Prediction Using Gated Recurrent Unit (GRU) with Historical Data and Economic Factor

DOI: https://doi.org/10.33650/jeecom.v7i2.12385

Authors (s)


(1) * Muhammad Azmi Adhani   ()  
        Indonesia
(2)  Kusrini Kusrini   ()  
        Indonesia
(*) Corresponding Author

Abstract


This study presents a currency exchange rate prediction model using a Gated Recurrent Unit (GRU) with historical price data and selected economic factors. Historical data, including Open, High, Low, and Close (OHLC) prices, were obtained from Yahoo Finance. Economic factor data, including Non-Farm Payrolls (NFP), Gross Domestic Product (GDP), Purchasing Managers Index (PMI), Retail Sales, and Durable Goods Orders, were collected from Trading View. Data preprocessing involved chronological sorting, missing value handling, feature scaling, and sequence generation. Multiple experiment cases were evaluated: historical data alone, historical data combined with all economic factors, and historical data combined with each individual factor. The GRU model achieved its best performance when incorporating historical data with Durable Goods Orders, indicating that this economic indicator provides significant predictive value, as reflected by the lowest RMSE (0.0076) and MAPE (0.0054), and the highest R² (0.9764) indicating that this economic factor provides significant predictive value. These findings highlight the importance of integrating selected economic factors into exchange rate prediction models to enhance forecasting accuracy.


Keywords

Currency Prediction; Gated Recurrent Unit; Historical Data; Economic Factors



Full Text: PDF



References


Bank of International Settlements, “OTC Foreign Exchange Turnover in April 2022,” Bank for International Settlements, Basel, Switzerland, Statistical Release Triennial Central Bank Survey 2022, 2022.

H. Hartono, N. Nersiwad, M. Muslimin, F. Asj’ari, and M. Martins, “Risk management analysis and investment strategy on forex online trading,” JPPI, vol. 10, no. 2, p. 616, Jun. 2024, doi: 10.29210/020242657.

W. Pongsena, P. Sitsayabut, N. Kerdprasop, and K. Kerdprasop, “Development of a Model for Predicting the Direction of Daily Price Changes in the Forex Market Using Long Short-Term Memory,” IJMLC, vol. 11, no. 1, pp. 61–67, Jan. 2021, doi: 10.18178/ijmlc.2021.11.1.1015.

S. W. Agung, K. S. W. Rianto, and A. Wibowo, “Comparative Study of Forecasting Models for Forex Predictions with the Impact of Different Currencies,” IJETAE, vol. 12, no. 1, pp. 11–22, Jan. 2022, doi: 10.46338/ijetae0122_02.

E. Kocenda and M. Moravcová, “Intraday Effect of News on Emerging European Forex Markets: An Event Study Analysis,” 2018.

M. Jannah, W. Fuadi, and Z. Fitri, “Application of Long Short-Term Memory (LSTM) Algorithm in Predicting Forex Trading Price Movements on the USD/JPY Pair,” in The 2nd International Conference on Multidisciplinary Engineering (ICOMDEN), in ICOMDEN Proceedings, vol. 2. Lhokseumawe, Indonesia: Faculty of Engineering, Universitas Malikussaleh, 2024, pp. 1–7.

M. R. Pahlevi, K. Kusrini, and T. Hidayat, “Comparison of LSTM and GRU Models for Forex Prediction,” SinkrOn, vol. 8, no. 4, pp. 2254–2263, Oct. 2023, doi: 10.33395/sinkron.v8i4.12709.

M. O. Rahman, S. Hossain, T.-S. Junaid, S. A. Forhad, and M. K. Hossen, “Predicting Prices of Stock Market using Gated Recurrent Units (GRUs) Neural Networks,” International Journal of Computer Science and Network Security (IJCSNS), vol. 19, no. 1, pp. 213–222, 2019.

A. Pornwattanavichai, S. Maneeroj, and S. Boonsiri, “BERTFOREX: Cascading Model for Forex Market Forecasting Using Fundamental and Technical Indicator Data Based on BERT,” IEEE Access, vol. 10, pp. 23425–23437, 2022, doi: 10.1109/ACCESS.2022.3152152.

M. Alwateer, E.-S. Atlam, M. M. A. El-Raouf, O. A. Ghoneim, and I. Gad, “Missing Data Imputation: A Comprehensive Review,” JCC, vol. 12, no. 11, pp. 53–75, 2024, doi: 10.4236/jcc.2024.1211004.

B. G. Chepino, R. R. Yacoub, A. Aula, M. Saleh, and B. W. Sanjaya, “EFFECT OF MINMAX NORMALIZATION ON ORB DATA FOR IMPROVED ANN ACCURACY,” J3EIT, vol. 11, no. 2, p. 29, Aug. 2023, doi: 10.26418/j3eit.v11i2.68689.

I. P. G. A. Sudiatmika and I. M. A. W. Putra, “Comparison of LSTM and GRU Models Performance in Forecasting Gold Prices: A Case Study Using Historical Data from Yahoo Finance,” ARRUS J. Eng. Tech., vol. 4, no. 1, Jul. 2024, doi: 10.35877/jetech2760.

Nisha Wankhade, “An Statistical Analysis of Gated Recurrent Unit Based Predictive Modelling for Dynamic Obstacle Avoidance in Autonomous Aerial Vehicles,” cana, vol. 31, no. 2s, pp. 360–372, Jun. 2024, doi: 10.52783/cana.v31.654.

C. Chen, L. Xue, and W. Xing, “Research on Improved GRU-Based Stock Price Prediction Method,” Applied Sciences, vol. 13, no. 15, p. 8813, Jul. 2023, doi: 10.3390/app13158813.

I. W. R. Pinastawa, M. G. Pradana, D. S. Setiawan, and A. Izzety, “Comparison of ARIMA and GRU Methods in Predicting Cryptocurrency Price Movements,” SinkrOn, vol. 9, no. 1, pp. 96–105, Jan. 2025, doi: 10.33395/sinkron.v9i1.14235.

R. Rizky, M. Ula, and Z. Yunizar, “Evaluating GRU Algorithm and Double Moving Average for Predicting USDT Prices: A Case Study 2017-2024,” SISFOKOM, vol. 14, no. 1, pp. 107–113, Jan. 2025, doi: 10.32736/sisfokom.v14i1.2328.

J. Dip Das, R. K. Thulasiram, C. Henry, and A. Thavaneswaran, “Encoder–Decoder Based LSTM and GRU Architectures for Stocks and Cryptocurrency Prediction,” JRFM, vol. 17, no. 5, p. 200, May 2024, doi: 10.3390/jrfm17050200.


Dimensions, PlumX, and Google Scholar Metrics

10.33650/jeecom.v7i2.12385


Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Muhammad Azmi Adhani, Kusrini Kusrini

 
This work is licensed under a Creative Commons Attribution License (CC BY-SA 4.0)

Journal of Electrical Engineering and Computer (JEECOM)
Published by LP3M Nurul Jadid University, Indonesia, Probolinggo, East Java, Indonesia.