Multi-Source Financial Data Integration via LSTM-GRU-Attention Models for Robust Forex Predictions
Main Article Content
Abstract
Previous studies have shown that utilizing data sources such as historical or technical data along with deep learning approaches can increase the accuracy of forex price prediction. However, relying on a single data source, such as historical data alone, limits predictive performance as it fails to capture the entire complexity of the market. This study aims to demonstrate that merging financial data from four different sources can significantly improve prediction accuracy. This study proposes a hybrid LSTM-GRU-Attention deep learning model, leveraging historical, fundamental, technical, and sentiment data, to predict the closing price of the GBP/USD currency pair, which is actively traded on a global scale. QuantManager, Forexfactory, and DailyFX data were collected over three timeframes: 30-minute, 1-hour, and 1-day, from January 1, 2013 to December 31, 2023, respectively. The model’s performance was evaluated using MSE, RMSE, and MAE metrics. The proposed model with multi-source data demonstrated substantial error reductions compared to historical data only models from previous studies, achieving RMSE decreases from 17% to 89% and MAE reductions from 22% to 94% across 30-minute, 1-hour, and 1-day timeframes. The integrated multi-source data model outperformed models that integrated only historical data, across all timeframes, highlighting the benefits of improved forex prediction accuracy.
Article Details
References
Ahmed, S., Hassan, S.-U., Aljohani, N. R., & Nawaz, R. (2020). FLF-LSTM: A novel prediction system using forex loss function. Applied Soft Computing, 97, 106780. https://doi.org/10.1016/j.asoc.2020.106780
Atha, S. & Bolla, B.K. (2022). Do deep learning models and news headlines outperform conventional prediction techniques on forex data? Lecture notes in networks and systems, 413–423. doi: https://doi.org/10.48550/arXiv.2205.10743
Bettman, J. L., Sault, S. J., & Schultz, E. L. (2009). Fundamental and technical analysis: Substitutes or complements? Accounting & Finance, 49(1), 21-36. https://doi.org/10.1111/j.1467-629x.2008.00277.x
Boobalan, C. (2014). Technical analysis in select stocks of Indian companies. International Journal of Business and Administration Research Review, 2(4), 26-36.
Cheng, C.-H., Tsai, M.-C., & Chang, C. (2022). A time series model based on deep learning and integrated indicator selection method for forecasting stock prices and evaluating trading profits. Systems, 10(6), 243. https://doi.org/10.3390/systems10060243
Choe, D.-E., Kim, H.-C., & Kim, M.-H. (2021). Sequence-based modeling of deep learning with LSTM and GRU networks for structural damage detection of floating offshore wind turbine blades. Renewable Energy, 174, 218-235. https://doi.org/10.1016/j.renene.2021.04.025
Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv.org. http://arxiv.org/abs/1412.3555
Dautel, A. J., Härdle, W. K., Lessmann, S., & Seow, H. (2020). Forex exchange rate forecasting using deep recurrent neural networks. Digital Finance, 2(1–2), 69–96. https://doi.org/10.1007/s42521-020-00019-x
Faru, S. H., Waititu, A., & Nderu, L. (2023). A hybrid neural network model based on transfer learning for forecasting forex market. Journal of Data Analysis and Information Processing, 11(02), 103–120. https://doi.org/10.4236/jdaip.2023.112007
Faust, J., Rogers, J. H., Wang, S., & Wright, J. H. (2003). The High-Frequency response of exchange rates and interest rates to macroeconomic announcements. International Finance Discussion Paper, 2003(784), 1–47. https://doi.org/10.17016/ifdp.2003.784
Fischer, T., & Krauss, C. (2018). Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2), 654-669. https://doi.org/10.1016/j.ejor.2017.11.054
Hosseini, H., Xiao, B., Jaiswal, M., & Poovendran, R. (2017). On the limitation of convolutional neural networks in recognizing negative images. 2017 16th IEEE International Conference on Machine Learning and Applications (ICMLA). https://doi.org/10.1109/icmla.2017.0-136
Islam, M. S., & Hossain, E. (2021). Foreign exchange currency rate prediction using a GRU-LSTM hybrid network. Soft Computing Letters, 3, 100009. https://doi.org/10.1016/j.socl.2020.100009
Kaltwasser, P. R. (2010). Uncertainty about fundamentals and herding behavior in the forex market. Physica A: Statistical Mechanics and Its Applications, 389(6), 1215-1222. https://doi.org/10.1016/j.physa.2009.11.012
Khadjeh Nassirtoussi, A., Aghabozorgi, S., Ying Wah, T., & Ngo, D. C. (2015). Text mining of news-headlines for forex market prediction: A Multi-layer dimension reduction algorithm with semantics and sentiment. Expert Systems with Applications, 42(1), 306-324. https://doi.org/10.1016/j.eswa.2014.08.004
Komariah, K. S., Machbub, C., Prihatmanto, A. S., & Sin, B.-K. (2016). A study on efficient market hypothesis to predict exchange rate trends using sentiment analysis of Twitter data. Journal of Korea Multimedia Society, 19(7), 1107-1115. https://doi.org/10.9717/kmms.2016.19.7.1107
Li, X., & Ming, H. (2023). Stock Market Prediction using Reinforcement Learning with Sentiment Analysis. International Journal on Cybernetics & Informatics, 12(1), 1–20. https://doi.org/10.5121/ijci.2023.120101
Lien Minh, D., Sadeghi-Niaraki, A., Huy, H. D., Min, K., & Moon, H. (2018). Deep learning approach for short-term stock trends prediction based on two-stream gated recurrent unit network. IEEE Access, 6, 55392-55404. https://doi.org/10.1109/access.2018.2868970
Lu, W., Li, J., Li, Y., Sun, A., & Wang, J. (2020). A CNN-LSTM-based model to forecast stock prices. Complexity, 2020, 1-10. https://doi.org/10.1155/2020/6622927
Mabrouk, N., Chihab, M., Hachkar, Z., & Chihab, Y. (2022). Intraday trading strategy based on Gated Recurrent Unit and Convolutional Neural Network: Forecasting daily price direction. International Journal of Advanced Computer Science and Applications, 13(3). https://doi.org/10.14569/ijacsa.2022.0130369
Nuraeni, N., Astuti, P., Irnawati, O., Darwati, I., & Harmoko, D. D. (2020). High accuracy in forex predictions using the neural network method based on particle swarm optimization. Journal of Physics, 1641(1), 012067. https://doi.org/10.1088/1742-6596/1641/1/012067
Panda, M. M., Panda, S. N., & Pattnaik, P. K. (2022). Forecasting foreign currency exchange rate using Convolutional Neural Network. International Journal of Advanced Computer Science and Applications, 13(2). https://doi.org/10.14569/ijacsa.2022.0130272
Park, C.-H., & Irwin, S. H. (2007). What do we know about the profitability of technical analysis? Journal of Economic Surveys, 21(4), 786-826. https://doi.org/10.1111/j.1467-6419.2007.00519.x
Pornwattanavichai, A., Maneeroj, S. and Boonsiri, S. (2022). BERTFOREX: Cascading model for forex market forecasting using fundamental and technical indicator data based on BERT. IEEE Access, 10, 23425–23437. https://doi.org/10.1109/access.2022.3152152
Rodríguez, F.F., Sosvilla-Rivero, S. and Félix, J.A. (2001). Technical analysis in Foreign exchange markets: Linear versus nonlinear trading rules. Social Science Research Network. https://doi.org/10.2139/ssrn.275161
Rostamian, A., & O’Hara, J. G. (2022). Event prediction within directional change framework using a CNN-LSTM model. Neural Computing and Applications, 34(20), 17193–17205. https://doi.org/10.1007/s00521-022-07687-3
Sako, K., Mpinda, B. N., & Rodrigues, P. C. (2022). Neural Networks for Financial Time Series Forecasting. Entropy, 24(5), 657. https://doi.org/10.3390/e24050657
Salisu, A. A., & Olaniran, A. (2022). The U.S. Nonfarm Payroll and the out-of-sample predictability of output growth for over six decades. Quality & Quantity, 56(6), 4663–4673. https://doi.org/10.1007/s11135-022-01342-8
Sánchez, J. M., & Liborio, C. S. (2012). The relationships among changes in GDP, employment, and unemployment: This time, it’s different. Economic Synopses, 2012(13). https://doi.org/10.20955/es.2012.13
Semiromi, H. N., Lessmann, S., & Peters, W. (2020). News will tell: Forecasting foreign exchange rates based on news story events in the economy calendar. The North American Journal of Economics and Finance, 52, 101181. https://doi.org/10.1016/j.najef.2020.101181
Siami-Namini, S., Tavakoli, N., & Namin, A. S. (2019). A comparative analysis of forecasting financial time series using ARIMA, LSTM, and BILSTM. arXiv.org. http://arxiv.org/abs/1911.09512
Stavrakeva, V., & Tang, J. (2020). A fundamental connection: exchange rates and macroeconomic expectations. Working Paper Series. https://doi.org/10.29412/res.wp.2020.20
Taylor, M. P., & Allen, H. (1992). The use of technical analysis in the foreign exchange market. Journal of International Money and Finance, 11(3), 304-314. https://doi.org/10.1016/0261-5606(92)90048-3
Tsai, Y.-C., Chen, J.-H., & Wang, J.-J. (2018). Predict forex trend via convolutional neural networks. Journal of Intelligent Systems, 29(1), 941-958. https://doi.org/10.1515/jisys-2018-0074
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 5998-6008. http://arxiv.org/abs/1706.03762
Xu, H., Xu, C., Sun, Y., Peng, J., Tian, W., & He, Y. (2023). Exchange rate forecasting based on integration of Gated Recurrent Unit (GRU) and CBOE Volatility Index (VIX). Computational Economics. https://doi.org/10.1007/s10614-023-10484-2
Yasir, M., Durrani, M. Y., Afzal, S., Maqsood, M., Aadil, F., Mehmood, I., & Rho, S. (2019). An intelligent event-sentiment-based daily foreign exchange rate forecasting system. Applied Sciences, 9(15), 2980. https://doi.org/10.3390/app9152980
Yıldırım, D. C., Toroslu, I. H., & Fiore, U. (2021). Forecasting directional movement of forex data using LSTM with technical and macroeconomic indicators. Financial Innovation, 7(1), 1-36. https://doi.org/10.1186/s40854-020-00220-2
Zeng, Z., & Khushi, M. (2020). Wavelet denoising and attention-based RNN-ARIMA model to predict forex price. arXiv.org. https://doi.org/10.48550/arXiv.2008.06841