Machine Learning-Based Trading Robot for Foreign Exchange (FOREX) | SpringerLink
Skip to main content

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 721))

Abstract

Financial markets are extremely complex due to their non-linear, non- stationary, and time-variant nature. Researchers are increasingly investigating the automation of financial trading as AI capabilities advance particularly in complicated markets such as Foreign Exchange. (FOREX). Traders typically use three types of trading analysis: technical analysis, which uses historical price data to perform mathematical computations; fundamental analysis, which investigates economic factors influencing price movement; and sentiment analysis, which investigates the emotional movement due to market news. There have been a variety of integration techniques utilized in prior attempts to combine AI prediction models with these approaches. Federated learning, which might integrate the learning capacity of dispersed models, has not yet been used by anyone. This study proposes a FOREX trading robot that uses federated learning to aggregate trading analysis methodologies, specifically analyzing market news sentiment and technical calculations based on historical prices for a specific currency pair to determine when to buy or sell for maximum profit. The implementation of federated learning is a future work that we intend to test in the near future. This is the first research work to study the deployment of federated learning in the financial trading field.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
JPY 3498
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
JPY 22879
Price includes VAT (Japan)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
JPY 28599
Price includes VAT (Japan)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Leles, M.C.R., Sbruzzi, E.F., De Oliveira, J.M.P., Nascimento, C.L.: Trading switching setup based on reinforcement learning applied to a multiagent system simulation of financial markets. In: SysCon 2019 - 13th Annual IEEE International Systems Conference, Proceedings. Institute of Electrical and Electronics Engineers Inc. (2019)

    Google Scholar 

  2. Dang, Q.-V.: Reinforcement learning in stock trading. In: Le Thi, H.A., Le, H.M., Pham Dinh, T., Nguyen, N.T. (eds.) ICCSAMA 2019. AISC, vol. 1121, pp. 311–322. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-38364-0_28

    Chapter  Google Scholar 

  3. Chantarakasemchit, O., Nuchitprasitchai, S., Nilsiam, Y.: Forex rates prediction on EUR/USD with simple moving average technique and financial factors. In: 17th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology, ECTI-CON 2020. Institute of Electrical and Electronics Engineers Inc., pp. 771–774 (2020)

    Google Scholar 

  4. Baek, S., Glambosky, M., Oh, S.H., Lee, J.: machine learning and algorithmic pairs trading in futures markets. Sustain 12 (2020)https://doi.org/10.3390/SU12176791

  5. Neely, C.J., Weller, P.A.: Lessons from the evolution of foreign exchange trading strategies. J. Bank Financ. 37, 3783–3798 (2013). https://doi.org/10.1016/j.jbankfin.2013.05.029

    Article  Google Scholar 

  6. Anbaee Farimani, S., Vafaei Jahan, M., Milani Fard, A., Tabbakh, S.R.K.: Investigating the informativeness of technical indicators and news sentiment in financial market price prediction. Knowledge-Based Syst. 247, 108742 (2022). https://doi.org/10.1016/j.knosys.2022.108742

    Article  Google Scholar 

  7. Zhang, T., Gao, L., He, C., et al.: Federated learning for the internet of things: applications, challenges, and opportunities. IEEE Internet Things Mag. 5, 24–29 (2022). https://doi.org/10.1109/iotm.004.2100182

    Article  Google Scholar 

  8. Ye, W., Duo, W.: Autonomous FOREX trading agents. In: Proceedings of the 2019 3rd International Conference on Advances in Image Processing. ACM, New York, NY, USA, pp. 205–210 (2019)

    Google Scholar 

  9. Sidehabi, S.W., Indrabayu, Tandungan, S.: Statistical and Machine Learning approach in forex prediction based on empirical data. In: Proceedings CYBERNETICSCOM 2016: International Conference on Computational Intelligence and Cybernetics. Institute of Electrical and Electronics Engineers Inc., pp. 63–68 (2017)

    Google Scholar 

  10. Ahmed, S., Hassan, S.U., Aljohani, N.R., Nawaz, R.: FLF-LSTM: A novel prediction system using Forex Loss Function. Appl. Soft Comput. J. 97, 106780 (2020). https://doi.org/10.1016/j.asoc.2020.106780

    Article  Google Scholar 

  11. Islam, M.S., Hossain, E.: Foreign exchange currency rate prediction using a GRU-LSTM hybrid network. Soft Comput. Lett. 3, 100009 (2021). https://doi.org/10.1016/j.socl.2020.100009

    Article  Google Scholar 

  12. Dautel, A.J., Härdle, W.K., Lessmann, S., Seow, H.-V.: Forex exchange rate forecasting using deep recurrent neural networks. Digit. Financ. 2, 69–96 (2020). https://doi.org/10.1007/s42521-020-00019-x

    Article  Google Scholar 

  13. Datta, R.K., Sajid, S.W., Moon, M.H., Abedin, M.Z.: Foreign currency exchange rate prediction using bidirectional long short term memory. In: Studies in Computational Intelligence. Springer Science and Business Media Deutschland GmbH, pp. 213–227 (2021)

    Google Scholar 

  14. Munkhdalai, L., Munkhdalai, T., Park, K.H., et al.: Mixture of activation functions with extended min-max normalization for forex market prediction. IEEE Access 7, 183680–183691 (2019). https://doi.org/10.1109/ACCESS.2019.2959789

    Article  Google Scholar 

  15. AmirAskari, M., Menhaj, M.B.: A modified fuzzy relational model approach to prediction of foreign exchange rates. In: 2016 4th International Conference on Control, Instrumentation, and Automation, ICCIA 2016. Institute of Electrical and Electronics Engineers Inc., pp. 457–461 (2016)

    Google Scholar 

  16. Galeshchuk, S.: Neural Networks performance in exchange rate prediction. Neurocomputing 172, 446–452 (2016). https://doi.org/10.1016/j.neucom.2015.03.100

    Article  Google Scholar 

  17. Petropoulos, A., Chatzis, S.P., Siakoulis, V., Vlachogiannakis, N.: A Stacked Generalization System for Automated FOREX Portfolio Trading. Expert Syst. Appl. 90, 290–302 (2017). https://doi.org/10.1016/j.eswa.2017.08.011

    Article  Google Scholar 

  18. Ploysuwan, T., Chaisricharoen, R.: Gaussian process kernel crossover for automated forex trading system. In: ECTI-CON 2017–2017 14th International Conference on Electrical Engineering/Electronics, pp. 802–805. Telecommunications and Information Technology. Institute of Electrical and Electronics Engineers Inc., Computer (2017)

    Google Scholar 

  19. Carapuço, J., Neves, R., Horta, N.: Reinforcement learning applied to forex trading. Appl. Soft Comput. J. 73, 783–794 (2018). https://doi.org/10.1016/j.asoc.2018.09.017

    Article  Google Scholar 

  20. Contreras, A.V., Llanes, A., Pérez-Bernabeu, A., et al.: ENMX: an elastic network model to predict the FOREX market evolution. Simul. Model Pract. Theory 86, 1 (2018). https://doi.org/10.1016/j.simpat.2018.04.008

  21. Yong, Y.L., Lee, Y., Gu, X., et al.: Foreign currency exchange rate prediction using neuro-fuzzy systems. In: Procedia Computer Science. Elsevier, pp. 232–238 (2018)

    Google Scholar 

  22. Bisi, L., Liotet, P., Sabbioni, L., et al.: Foreign exchange trading: a risk-averse batch reinforcement learning approach, 20. https://doi.org/10.1145/3383455

  23. Sarangi, P.K., Chawla, M., Ghosh, P., et al.: FOREX trend analysis using machine learning techniques: INR vs USD currency exchange rate using ANN-GA hybrid approach. In: Materials Today: Proceedings. Elsevier, pp. 3170–3176 (2020)

    Google Scholar 

  24. Jarusek, R., Volna, E., Kotyrba, M.: FOREX rate prediction improved by elliott waves patterns based on neural networks. Neural Netw. 145, 342–355 (2022). https://doi.org/10.1016/j.neunet.2021.10.024

    Article  Google Scholar 

  25. Korczak, J., Hernes, M., Bac, M.: Fundamental analysis in the multi-agent trading system. In: Proceedings of the 2016 Federated Conference on Computer Science and Information Systems, FedCSIS 2016, pp. 1169–1174 (2016)

    Google Scholar 

  26. Ranjit, S., Shrestha, S., Subedi, S., Shakya, S.: Foreign rate exchange prediction using neural network and sentiment analysis. In: Proceedings IEEE 2018 International Conference on Advances in Computing, Communication Control and Networking, ICACCCN 2018. Institute of Electrical and Electronics Engineers Inc., pp. 1173–1177 (2018)

    Google Scholar 

  27. Ozturk, M., Toroslu, I.H., Fidan, G.: Heuristic based trading system on forex data using technical indicator rules. Appl. Soft Comput. J. 43, 170–186 (2016). https://doi.org/10.1016/j.asoc.2016.01.048

    Article  Google Scholar 

  28. Adegboye, A., Kampouridis, M., Johnson, C.G.: Regression genetic programming for estimating trend end in foreign exchange market. In: 2017 IEEE Symposium Series on Computational Intelligence, SSCI 2017 Proceedings. Institute of Electrical and Electronics Engineers Inc., pp. 1–8 (2018)

    Google Scholar 

  29. Özorhan, M.O., Toroslu, İH., Şehitoğlu, O.T.: A strength-biased prediction model for forecasting exchange rates using support vector machines and genetic algorithms. Soft. Comput. 21(22), 6653–6671 (2016). https://doi.org/10.1007/s00500-016-2216-9

    Article  Google Scholar 

  30. Zhang, Z., Khushi, M.: GA-MSSR: genetic algorithm maximizing sharpe and sterling ratio method for robotrading. In: Proceedings of the International Joint Conference on Neural Networks. Institute of Electrical and Electronics Engineers Inc. (2020)

    Google Scholar 

  31. Jubert de Almeida, B., Ferreira Neves, R., Horta, N.: Combining Support Vector Machine with Genetic Algorithms to optimize investments in Forex markets with high leverage. Appl. Soft Comput. J. 64, 596–613 (2018). https://doi.org/10.1016/j.asoc.2017.12.047

    Article  Google Scholar 

  32. Zhao, Y., Khushi, M.: Wavelet Denoised-ResNet CNN and LightGBM method to predict forex rate of change. In: IEEE International Conference on Data Mining Workshops, ICDMW. IEEE Computer Society, pp. 385–391 (2020)

    Google Scholar 

  33. Zeng Z, Khushi M (2020) Wavelet Denoising and Attention-based RNNARIMA Model to Predict Forex Price. In: Proceedings of the International Joint Conference on Neural Networks. Institute of Electrical and Electronics Engineers Inc.

    Google Scholar 

  34. Przemyslaw, J., Jan, K., Katarzyna, T.: Decision trees on the foreign exchange market. In: Smart Innovation, Systems and Technologies. Springer Science and Business Media Deutschland GmbH, pp. 127–138 (2016)

    Google Scholar 

  35. Weerathunga, H.P.S., Silva, A.T.P.: DRNN-ARIMA approach to short-term trend forecasting in forex market. Institute Electr. Electron. Engineers (IEEE), pp. 287–293 (2019)

    Google Scholar 

  36. Zafeiriou, T., Kalles, D.: Intraday ultra-short-term forecasting of foreign exchange rates using an ensemble of neural networks based on conventional technical indicators. In: ACM International Conference Proceeding Series. Association for Computing Machinery, pp. 224–231 (2020)

    Google Scholar 

  37. Qi, L., Khushi, M., Poon, J.: Event-Driven LSTM for forex price prediction. In: 2020 IEEE Asia-Pacific Conference on Computer Science and Data Engineering, CSDE 2020. Institute of Electrical and Electronics Engineers Inc. (2020)

    Google Scholar 

  38. Hernandez-Aguila, A., Garcia-Valdez, M., Merelo-Guervos, J.J., et al.: Using Fuzzy inference systems for the creation of forex market predictive models. IEEE Access 9, 69391–69404 (2021). https://doi.org/10.1109/ACCESS.2021.3077910

    Article  Google Scholar 

  39. Fisichella, M., Garolla, F.: Can deep learning improve technical analysis of forex data to predict future price movements? IEEE Access 9, 153083–153101 (2021). https://doi.org/10.1109/ACCESS.2021.3127570

    Article  Google Scholar 

  40. Sadeghi, A., Daneshvar, A., Madanchi Zaj, M.: Combined ensemble Multi-class SVM and Fuzzy NSGA-II for trend forecasting and trading in forex markets. Expert Syst. Appl. 185, 115566 (2021). https://doi.org/10.1016/j.eswa.2021.115566

    Article  Google Scholar 

  41. Zafeiriou, T., Kalles, D.: Ultra-short-term trading system using a neural network-based ensemble of financial technical indicators. Neural Comput. Appl. 35, 1–26 (2021). https://doi.org/10.1007/s00521-021-05945-4

    Article  Google Scholar 

  42. Hansun, S., Kristanda, M.B.: Performance analysis of conventional moving average methods in forex forecasting. In: Proceeding of 2017 International Conference on Smart Cities, Automation and Intelligent Computing Systems, ICON-SONICS 2017. Institute of Electrical and Electronics Engineers Inc., pp. 11–17 (2017)

    Google Scholar 

  43. Naderi Semiromi, H., Lessmann, S., Peters, W.: News will tell: forecasting foreign exchange rates based on news story events in the economy calendar. North Am. J. Econ. Financ. 52, 101181 (2020). https://doi.org/10.1016/j.najef.2020.101181

  44. Das, S.R., Mishra, D., Rout, M.: A hybridized ELM-Jaya forecasting model for currency exchange prediction. J King Saud Univ Comput Inf Sci 32, 345–366 (2020). https://doi.org/10.1016/j.jksuci.2017.09.006

    Article  Google Scholar 

  45. Yıldırım, D.C., Toroslu, I.H., Fiore, U.: Forecasting directional movement of Forex data using LSTM with technical and macroeconomic indicators. Financial Innovation 7(1), 1–36 (2021). https://doi.org/10.1186/s40854-020-00220-2

    Article  Google Scholar 

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

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Manar Abu Talib .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Dakalbab, F.M., Talib, M.A., Nasir, Q. (2023). Machine Learning-Based Trading Robot for Foreign Exchange (FOREX). In: Daimi, K., Al Sadoon, A. (eds) Proceedings of the Second International Conference on Innovations in Computing Research (ICR’23). Lecture Notes in Networks and Systems, vol 721. Springer, Cham. https://doi.org/10.1007/978-3-031-35308-6_17

Download citation

Publish with us

Policies and ethics