Forecasting multi-frequency intraday exchange rates using deep learning models
Muhammad Arslan
Department of Economics and Finance, Foundation University Islamabad, Islamabad, Pakistan
Search for more papers by this authorAhmed Imran Hunjra
Rabat Business School, International University of Rabat, Rabat, Morocco
Search for more papers by this authorWajid Shakeel Ahmed
Department of Management Sciences, COMSATS University Islamabad, Islamabad, Pakistan
Search for more papers by this authorCorresponding Author
Younes Ben Zaied
EDC Pairs Business School, Paris, France
Correspondence
Younes Ben Zaied, EDC Pairs Business School, Paris, France.
Email: [email protected]
Search for more papers by this authorMuhammad Arslan
Department of Economics and Finance, Foundation University Islamabad, Islamabad, Pakistan
Search for more papers by this authorAhmed Imran Hunjra
Rabat Business School, International University of Rabat, Rabat, Morocco
Search for more papers by this authorWajid Shakeel Ahmed
Department of Management Sciences, COMSATS University Islamabad, Islamabad, Pakistan
Search for more papers by this authorCorresponding Author
Younes Ben Zaied
EDC Pairs Business School, Paris, France
Correspondence
Younes Ben Zaied, EDC Pairs Business School, Paris, France.
Email: [email protected]
Search for more papers by this authorAbstract
This paper examines the behavior of currencies' intraday exchange rates with mainly focuses on predicting these behaviors through deep learning models. The time series data are used in this study and comprise intraday exchange rate data for seven volatile currencies, recorded at two different frequency intervals: 1 h and 30 min. The data cover the time frame from January 1, 2018, to December 31, 2020. Firstly, wavelet maximal overlap discreet wavelet transform (MODWT) type “haar” is applied in order to identify the noise representing the volatile trend. Then learning models are applied to historical data that includes support vector regression (SVR), recurrent neural network (RNN), and long short-term memory (LSTM). The main findings of the study provide strong evidence that the deep learning technique (i.e., LSTM) outperforms the other compatible models. This has been confirmed by the statistical measures for accuracy purposes. This study intends to address complex trends exhibited by volatile behavior of intraday exchange rates through non-conventional learning techniques for the time of need-based for the currency traders and other stakeholders.
Open Research
DATA AVAILABILITY STATEMENT
The data that support the findings of this study are available from the corresponding author upon reasonable request.
REFERENCES
- Abedin, M. Z., Moon, M. H., Hassan, M. K., & Hajek, P. (2021). Deep learning-based exchange rate prediction during the COVID-19 pandemic. Annals of Operations Research, 306(1), 1–52. https://doi.org/10.1007/s10479-021-04420-6
10.1007/s10479-021-04420-6 Google Scholar
- Abiodun, O. I., Jantan, A., Omolara, A. E., Dada, K. V., Mohamed, N. A., & Arshad, H. (2018). State-of-the-art in artificial neural network applications: A survey. Heliyon, 4(11), e00938. https://doi.org/10.1016/j.heliyon.2018.e00938
- Afshan, S., Sharif, A., Loganathan, N., & Jammazi, R. (2018). Time–frequency causality between stock prices and exchange rates: Further evidences from cointegration and wavelet analysis. Physica a: Statistical Mechanics and its Applications, 495, 225–244. https://doi.org/10.1016/j.physa.2017.12.033
- Alfarano, S., Lux, T., & Wagner, F. (2008). Time variation of higher moments in a financial market with heterogeneous agents: An analytical approach. Journal of Economic Dynamics and Control, 32(1), 101–136. https://doi.org/10.1016/j.jedc.2006.12.014
- Al-Gounmeein, R. S., & Ismail, M. T. (2020). Forecasting the exchange rate of the Jordanian dinar versus the US dollar using a Box-Jenkins seasonal ARIMA model. International Journal of Mathematics and Computer Science, 15(1), 27–40.
- Alhnaity, B., & Abbod, M. (2020). A new hybrid financial time series prediction model. Engineering Applications of Artificial Intelligence, 95, 103873. https://doi.org/10.1016/j.engappai.2020.103873
- Aloud, M. E. (2020). The role of attribute selection in deep ANNs learning framework for high-frequency financial trading. Intelligent Systems in Accounting, Finance and Management, 27(2), 43–54. https://doi.org/10.1002/isaf.1466
- Andersen, T. G., Bollerslev, T., Diebold, F. X., & Labys, P. (2003). Modeling and forecasting realized volatility. Econometrica, 71(2), 579–625. https://doi.org/10.1111/1468-0262.00418
- Bacchetta, P., & Van Wincoop, E. (2004). A scapegoat model of exchange-rate fluctuations. American Economic Review, 94(2), 114–118. https://doi.org/10.1257/0002828041301849
- Baum, C. F., & Caglayan, M. (2010). On the sensitivity of the volume and volatility of bilateral trade flows to exchange rate uncertainty. Journal of International Money and Finance, 29(1), 79–93. https://doi.org/10.1016/j.jimonfin.2008.12.003
- Bellgard, C., & Goldschmidt, P. (1999). Forecasting foreign exchange rates: Random Walk Hypothesis, linearity and data frequency. Paper presented at the 12th Annual Australasian Finance & Banking Conference.
- Braun, M., & Larrain, B. (2005). Finance and the business cycle: International, inter-industry evidence. The Journal of Finance, 60(3), 1097–1128. https://doi.org/10.1111/j.1540-6261.2005.00757.x
- Bush, G., & López Noria, G. (2021). Uncertainty and exchange rate volatility: Evidence from Mexico. International Review of Economics and Finance, 75, 704–722. https://doi.org/10.1016/j.iref.2021.04.029
- Cao, J., Li, Z., & Li, J. (2019). Financial time series forecasting model based on CEEMDAN and LSTM. Physica a: Statistical Mechanics and its Applications, 519, 127–139. https://doi.org/10.1016/j.physa.2018.11.061
- Chatzis, S. P., Siakoulis, V., Petropoulos, A., Stavroulakis, E., & Vlachogiannakis, N. (2018). Forecasting stock market crisis events using deep and statistical machine learning techniques. Expert Systems with Applications, 112, 353–371. https://doi.org/10.1016/j.eswa.2018.06.032
- Childers, D. G. (1978). Modern spectrum analysis. IEEE Computer Society Press.
- Chong, E., Han, C., & Park, F. C. (2017). Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies. Expert Systems with Applications, 83, 187–205. https://doi.org/10.1016/j.eswa.2017.04.030
- Cohen, G. (2022). Algorithmic trading and financial forecasting using advanced artificial intelligence methodologies. Mathematics, 10(18), 3302. https://doi.org/10.3390/math10183302
- Deng, S., Zhu, Y., Huang, X., Duan, S., & Fu, Z. (2022). High-frequency direction forecasting of the futures market using a machine-learning-based method. Future Internet, 14(6), 180. https://doi.org/10.3390/fi14060180
- Deo, M., & King, W. (2015). Characterizing co-movements between indian and emerging asian equity markets through wavelet multi-scale analysis.
- Erçen, H. İ., Özdeşer, H., & Türsoy, T. (2022). The impact of macroeconomic sustainability on exchange rate: Hybrid machine-learning approach. Sustainability, 14(9), 5357. https://doi.org/10.3390/su14095357
- Escudero, P., Alcocer, W., & Paredes, J. (2021). Recurrent neural networks and ARIMA models for Euro/dollar exchange rate forecasting. Applied Sciences, 11(12), 5658. https://doi.org/10.3390/app11125658
- Fan, J., & Wang, Y. (2007). Multi-scale jump and volatility analysis for high-frequency financial data. Journal of the American Statistical Association, 102(480), 1349–1362. https://doi.org/10.1198/016214507000001067
- Fischert, K. (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
- Flores, B. E. (1986). A pragmatic view of accuracy measurement in forecasting. Omega, 14(2), 93–98. https://doi.org/10.1016/0305-0483(86)90013-7
- Frankel, J. A., & Froot, K. A. (1990). Chartists, fundamentalists, and trading in the foreign exchange market. The American Economic Review, 80(2), 181–185.
- Galeshchuk, S. (2016). Neural networks performance in exchange rate prediction. Neurocomputing, 172, 446–452. https://doi.org/10.1016/j.neucom.2015.03.100
- Gençay, R., Selçuk, F., & Ulugülyaǧci, A. (2003). High volatility, thick tails and extreme value theory in value-at-risk estimation. Insurance: Mathematics & Economics, 33(2), 337–356. https://doi.org/10.1016/j.insmatheco.2003.07.004
- Granger, C. W. (1981). Some properties of time series data and their use in econometric model specification. Journal of Econometrics, 16(1), 121–130. https://doi.org/10.1016/0304-4076(81)90079-8
- Hsu, M.-W., Lessmann, S., Sung, M.-C., Ma, T., & Johnson, J. E. V. (2016). Bridging the divide in financial market forecasting: Machine learners vs. financial economists. Expert Systems with Applications, 61, 215–234. https://doi.org/10.1016/j.eswa.2016.05.033
- Hu, Y., Ni, J., & Wen, L. (2020). A hybrid deep learning approach by integrating LSTM-ANN networks with GARCH model for copper price volatility prediction. Physica a: Statistical Mechanics and its Applications, 557, 124907. https://doi.org/10.1016/j.physa.2020.124907
- Huang, S.-C., Chuang, P.-J., Wu, C.-F., & Lai, H.-J. (2010). Chaos-based support vector regressions for exchange rate forecasting. Expert Systems with Applications, 37(12), 8590–8598. https://doi.org/10.1016/j.eswa.2010.06.001
- Hull, J. (2012). Risk management and financial institutions,+ Web Site (Vol. 733). John Wiley & Sons.
- Ince, H., & Trafalis, T. B. (2006). A hybrid model for exchange rate prediction. Decision Support Systems, 42(2), 1054–1062. https://doi.org/10.1016/j.dss.2005.09.001
- Jiao, Z., Hu, P., Xu, H., & Wang, Q. (2020). Machine learning and deep learning in chemical health and safety: A systematic review of techniques and applications. ACS Chemical Health & Safety, 27(6), 316–334. https://doi.org/10.1021/acs.chas.0c00075
- Jung, G., & Choi, S.-Y. (2021). Forecasting foreign exchange volatility using deep learning autoencoder-LSTM techniques. Complexity, 2021, 1–16. https://doi.org/10.1155/2021/6647534
- Kamruzzaman, J., & Sarker, R. A. (2003). Forecasting of currency exchange rates using ANN: a case study. Paper presented at the International Conference on Neural Networks and Signal Processing, 2003. Proceedings 2003.
- Kara, Y., Boyacioglu, M. A., & Baykan, Ö. K. (2011). Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul stock exchange. Expert Systems with Applications, 38(5), 5311–5319. https://doi.org/10.1016/j.eswa.2010.10.027
- Kecman, V. (2001). Learning and soft computing: Support vector machines, neural networks, and fuzzy logic models. MIT press.
- Kewat, P., Sharma, R., Singh, U., & Itare, R. (2017). Support vector machines through financial time series forecasting. Paper presented at the 2017 International conference of Electronics, Communication and Aerospace Technology (ICECA).
- Khairalla, M., & AL-Jallad, N. T. (2017). Hybrid forecasting scheme for financial time-series data using neural network and statistical methods. International Journal of Advanced Computer Science and Applications, 8(9), 319–327. https://doi.org/10.14569/IJACSA.2017.080945
10.14569/IJACSA.2017.080945 Google Scholar
- Khan, M. K., Teng, J. Z., Khan, M. I., & Khan, M. F. (2023). Stock market reaction to macroeconomic variables: An assessment with dynamic autoregressive distributed lag simulations. International Journal of Finance and Economics, 28, 2436–2448. https://doi.org/10.1002/ijfe.2543
- Kim, H. Y., & Won, C. H. (2018). Forecasting the volatility of stock price index: A hybrid model integrating LSTM with multiple GARCH-type models. Expert Systems with Applications, 103, 25–37. https://doi.org/10.1016/j.eswa.2018.03.002
- Kim, K.-j. (2003). Financial time series forecasting using support vector machines. Neurocomputing, 55(1), 307–319. https://doi.org/10.1016/S0925-2312(03)00372-2
- Kumbure, M. M., Lohrmann, C., Luukka, P., & Porras, J. (2022). Machine learning techniques and data for stock market forecasting: A literature review. Expert Systems with Applications, 197, 116659. https://doi.org/10.1016/j.eswa.2022.116659
- Kumru, M., & Kumru, P. Y. (2014). Using artificial neural networks to forecast operation times in metal industry. International Journal of Computer Integrated Manufacturing, 27(1), 48–59. https://doi.org/10.1080/0951192X.2013.800231
- Li, A. W., & Bastos, G. S. (2020). Stock market forecasting using deep learning and technical analysis: A systematic review. IEEE Access, 8, 185232–185242. https://doi.org/10.1109/ACCESS.2020.3030226
- Li, Z., Han, J., & Song, Y. (2020). On the forecasting of high-frequency financial time series based on ARIMA model improved by deep learning. Journal of Forecasting, 39, 1081–1097. https://doi.org/10.1002/for.2677
- Luo, R., Zhang, W., Xu, X., & Wang, J. (2018). A neural stochastic volatility model. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), 6401–6408. https://doi.org/10.1609/aaai.v32i1.12124
10.1609/aaai.v32i1.12124 Google Scholar
- Maneejuk, P., & Srichaikul, W. (2021). Forecasting foreign exchange markets: Further evidence using machine learning models. Soft Computing, 25(12), 7887–7898. https://doi.org/10.1007/s00500-021-05830-1
- Merton, R. C. (1980). On estimating the expected return on the market: An exploratory investigation. Journal of Financial Economics, 8(4), 323–361. https://doi.org/10.1016/0304-405X(80)90007-0
- Min, J. H., & Lee, Y.-C. (2005). Bankruptcy prediction using support vector machine with optimal choice of kernel function parameters. Expert Systems with Applications, 28(4), 603–614. https://doi.org/10.1016/j.eswa.2004.12.008
- Müller, K.-R., Smola, A. J., Rätsch, G., Schölkopf, B., Kohlmorgen, J., & Vapnik, V. (2005). Predicting time series with support vector machines. Paper presented at the Artificial Neural Networks—ICANN'97: 7th International Conference Lausanne, Switzerland, October 8–10, 1997 Proceeedings.
- Nelson, D. B. (1992). Filtering and forecasting with misspecified ARCH models I: Getting the right variance with the wrong model. Journal of Econometrics, 52(1–2), 61–90. https://doi.org/10.1016/0304-4076(92)90065-Y
- Nicolis, C. (1998). Atmospheric analogs and recurrence time statistics: Toward a dynamical formulation. Journal of the Atmospheric Sciences, 55(3), 465–475. https://doi.org/10.1175/1520-0469(1998)055<0465:AAARTS>2.0.CO;2
- Nikolopoulos, K., Punia, S., Schäfers, A., Tsinopoulos, C., & Vasilakis, C. (2021). Forecasting and planning during a pandemic: COVID-19 growth rates, supply chain disruptions, and governmental decisions. European Journal of Operational Research, 290(1), 99–115. https://doi.org/10.1016/j.ejor.2020.08.001
- Peng, Y., Albuquerque, P. H. M., de Sá, J. M. C., Padula, A. J. A., & Montenegro, M. R. (2018). The best of two worlds: Forecasting high frequency volatility for cryptocurrencies and traditional currencies with support vector regression. Expert Systems with Application, 97, 177–192. https://doi.org/10.1016/j.eswa.2017.12.004
- Qin, Y., Song, D., Chen, H., Cheng, W., Jiang, G., & Cottrell, G. (2017). A dual-stage attention-based recurrent neural network for time series prediction. arXiv preprint arXiv:.02971.
- Ranjit, S., Shrestha, S., Subedi, S., & Shakya, S. (2018). Comparison of algorithms in Foreign Exchange Rate Prediction. Paper presented at the 2018 IEEE 3rd International Conference on Computing, Communication and Security (ICCCS).
- Roy, S., & Mukherjee, P. (2020). Air quality index forecasting using hybrid neural network model with Lstm on Aqi sequences. Proceedings on Engineering Sciences, 2(4), 431–440. https://doi.org/10.24874/PES02.04.010
10.24874/PES02.04.010 Google Scholar
- Schmidhuber, J., & Hochreiter, S. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
- Sezer, O. B., Gudelek, M. U., & Ozbayoglu, A. M. (2020). Financial time series forecasting with deep learning: A systematic literature review: 2005–2019. Applied Soft Computing, 90, 106181. https://doi.org/10.1016/j.asoc.2020.106181
- So, M. K. P., Li, W. K., & Lam, K. (2002). A threshold stochastic volatility model. Journal of Forecasting, 21(7), 473–500. https://doi.org/10.1002/for.840
- Sun, S., Wang, S., & Wei, Y. (2020). A new ensemble deep learning approach for exchange rates forecasting and trading. Advanced Engineering Informatics, 46, 101160. https://doi.org/10.1016/j.aei.2020.101160
- Syrowatka, A., Kuznetsova, M., Alsubai, A., Beckman, A. L., Bain, P. A., Craig, K. J. T., Hu, J., Jackson, G. P., Rhee, K., & Bates, D. W. (2021). Leveraging artificial intelligence for pandemic preparedness and response: A scoping review to identify key use cases. Npj Digital Medicine, 4(1), 96. https://doi.org/10.1038/s41746-021-00459-8
- Tay, F. E. H., & Cao, L. J. (2002). Modified support vector machines in financial time series forecasting. Neurocomputing, 48(1-4), 847–861. https://doi.org/10.1016/S0925-2312(01)00676-2
- Tenti, P. (1996). Forecasting foreign exchange rates using recurrent neural networks. Applied Artificial Intelligence, 10(6), 567–582. https://doi.org/10.1080/088395196118434
- Tsang, P. M., Kwok, P., Choy, S. O., Kwan, R., Ng, S. C., Mak, J., Tsang, J., Koong, K., & Wong, T. L. (2007). Design and implementation of NN5 for Hong Kong stock price forecasting. Engineering Applications of Artificial Intelligence, 20(4), 453–461. https://doi.org/10.1016/j.engappai.2006.10.002
- Urata, S., & Kawai, H. (2000). The determinants of the location of foreign direct investment by Japanese small and medium-sized enterprises. Small Business Economics, 15, 79–103. https://doi.org/10.1023/A:1008173912813
- van Gerven, M., & Bohte, S. M. (2017). Artificial neural networks as models of neural information processing, https://doi.org/10.3389/978-2-88945-401-3
10.3389/978-2-88945-401-3 Google Scholar
- Vapnik, V. N. (1995). The nature of statistical learning theory. Springer2V erlag.
- Wang, G.-J., Wan, L., Feng, Y., Xie, C., Uddin, G. S., & Zhu, Y. (2023). Interconnected multilayer networks: Quantifying connectedness among global stock and foreign exchange markets. International Review of Financial Analysis, 86, 102518. https://doi.org/10.1016/j.irfa.2023.102518
- Yan, H., & Ouyang, H. (2018). Financial time series prediction based on deep learning. Wireless Personal Communications, 102(2), 683–700. https://doi.org/10.1007/s11277-017-5086-2
- Yao, Y., Xiao, Z., Wang, B., Viswanath, B., Zheng, H., & Zhao, B. Y. (2017). Complexity vs. performance: empirical analysis of machine learning as a service. Paper presented at the Proceedings of the 2017 Internet Measurement Conference.
- Zeng, Z., & Khushi, M. (2020). Wavelet denoising and attention-based RNN-ARIMA model to predict forex price. Paper presented at the 2020 International joint conference on neural networks (IJCNN).
- Zhang, L., Aggarwal, C., & Qi, G.-J. (2017). Stock price prediction via discovering multi-frequency trading patterns. Paper presented at the Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining.
- Zhang, Q., & Yan, W. Q. (2018). Currency detection and recognition based on deep learning. Paper presented at the 2018 15th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS).
- Zhao, R., Yan, R., Chen, Z., Mao, K., Wang, P., & Gao, R. X. (2019). Deep learning and its applications to machine health monitoring. Mechanical Systems and Signal Processing, 115, 213–237. https://doi.org/10.1016/j.ymssp.2018.05.050
- Zhou, Z., Fu, Z., Jiang, Y., Zeng, X., & Lin, L. (2020). Can economic policy uncertainty predict exchange rate volatility? New evidence from the GARCH-MIDAS model. Finance Research Letters, 34, 101258. https://doi.org/10.1016/j.frl.2019.08.006