High-Accuracy Forex Trading Prediction Model Using Machine Learning Algorithms

Authors

  • Ernest E. Onuiri Department of Computer Science, School of Computing, Babcock University, Nigeria
  • Tochukwu F. Chikezie Department of Computer Science, School of Computing, Babcock University, Nigeria
  • Ifeoma E. Z. Obata Department of Computer Science, School of Computing, Babcock University, Nigeria
  • Ruth C. Amanze Department of Computer Science, School of Computing, Babcock University, Nigeria

DOI:

https://doi.org/10.70112/ajes-2024.13.1.4235

Keywords:

Forex Market, Machine Learning, Predictive Model, Feature Selection, Binary Options Trading

Abstract

The foreign exchange (Forex) market, the largest financial market globally, involves the simultaneous buying and selling of currency pairs such as the United States Dollar (USD) and the Japanese Yen (JPY). Due to the high leverage and volatility inherent in Forex trading, retail investors and traders face significant financial risks. To mitigate this, a predictive model was developed using supervised machine learning to improve trading outcomes. A dataset comprising EUR/USD currency pair data from MetaTrader5, covering a period of 7 years (2015–2022), was streamlined to 5 years (2017–2022) for relevance. The dataset contained 13 features and 1,029 records, which underwent data cleaning and processing. Feature selection was performed using the Boruta package in R, and various machine learning algorithms were employed for model training and testing. The model’s accuracy was evaluated using the ROC curve and the Kappa statistic. The inclusion of the Simple Moving Average indicator improved forecast accuracy. Among the algorithms tested, the Generalized Linear Model (Logistic Model) performed best, achieving an accuracy of 86.28%, a specificity of 87.42%, a sensitivity of 86.5%, and an AUC (ROC) score of 86.97%. This predictive model has the potential to optimize profits, particularly in the context of binary options trading within the Forex market.

References

Compare Forex Brokers, “2021 Forex Trading Statistics + Industry Guide [Fact Checked],” June 9, 2021. [Online]. Available: https://www.compareforexbrokers.com/forex-trading/statistics. [Accessed: Sep. 13, 2024].

J. Chen, “Currency Pair Definition,” Investopedia, March 10, 2022. [Online]. Available: https://www.investopedia.com/terms/c/currency pair.asp. [Accessed: Sep. 13, 2024].

“Lesson 14: Forex Trading Sessions,” Forexcec. [Online]. Available: https://www.forexcec.com/gx/en/education/lesson-14-forex-trading-sessions. [Accessed: Sep. 13, 2024].

A. Ganti, “Foreign Exchange Market Definition,” Investopedia, November 8, 2020. [Online]. Available: https://www.investopedia. com/terms/forex/f/foreign-exchange-markets.asp. [Accessed: Sep. 13, 2024].

M. S. Raimundo and J. Okamoto, “SVR-wavelet adaptive model for forecasting financial time series,” in Proc. 2018 Int. Conf. on Information and Computer Technologies (ICICT), 2018. [Online]. Available: https://doi.org/10.1109/infoct.2018.8356851. [Accessed: Sep. 13, 2024].

S. H. González, P. I. López, G. P. Bringas, H. Quintián, and E. Corchado, Hybrid Artificial Intelligent Systems: 16th International Conference, HAIS 2021, Bilbao, Spain, September 22–24, 2021, Proceedings (Lecture Notes in Computer Science, vol. 12886, 1st ed. 2021). Springer, 2021.

P. Aggarwal and A. K. Sahani, “Comparison of Neural Networks for Foreign Exchange Rate Prediction,” IEEE, Nov. 26, 2020. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/9342733. [Accessed: Sep. 13, 2024].

S. Deng and A. Sakurai, “Short-term foreign exchange rate trading based on the support/resistance level of Ichimoku Kinko Hyo,” IEEE, April 26, 2014. [Online]. Available: https://ieeexplore.ieee.org/ document/6948127. [Accessed: Sep. 13, 2024].

C. Zhao and J. Du, “Causality Between FDI and Economic Growth in China,” The Chinese Economy, vol. 40, no. 6, pp. 68–82, 2007. [Online]. Available: https://doi.org/10.2753/ces1097-1475400604. [Accessed: Sep. 13, 2024].

E. E. Onuiri, “Clinical Associations and Genetic Alterations to Predict Radiotherapy Treatment Response in Patients with Triple Negative Breast Cancer (TNBC),” Thesis, Rutgers University, August 2020. [Online]. Available: https://rucore.libraries.rutgers.edu/rutgers-lib/64650/PDF/1/play/. [Accessed: Sep. 13, 2024].

Downloads

Published

18-04-2024

How to Cite

Onuiri, E. E., Chikezie, T. F., Obata, I. E. Z., & Amanze, R. C. (2024). High-Accuracy Forex Trading Prediction Model Using Machine Learning Algorithms. Asian Journal of Electrical Sciences, 13(1), 26–34. https://doi.org/10.70112/ajes-2024.13.1.4235

Most read articles by the same author(s)