Modeling and Trading the EUR/USD Exchange Rate Using Machine Learning Techniques


  • K. Theofilatos Pattern Recognition Laboratory, Department of Computer Engineering & Informatics, University of Patras, Greece
  • S. Likothanassis Department of Computer Engineering and Informatics, University of Patras, Greece
  • A. Karathanasopoulos London Metropolitan Business School, United Kingdom
Volume: 2 | Issue: 5 | Pages: 269-272 | October 2012 |


The present paper aims in investigating the performance of state-of-the-art machine learning techniques in trading with the EUR/USD exchange rate at the ECB fixing. For this purpose, five supervised learning classification techniques (K-Nearest Neighbors algorithm, Naïve Bayesian Classifier, Artificial Neural Networks, Support Vector Machines and Random Forests) were applied in the problem of the one day ahead movement prediction of the EUR/USD exchange rate with only autoregressive terms as inputs. For comparison reasons, the performance of all machine learning techniques was benchmarked by two traditional techniques (Naïve  Strategy and moving average convergence/divergence model). Trading strategies produced by the machine learning techniques of Support Vector Machines and Random Forests clearly outperformed all other strategies in terms of annualized return and sharp ratio. To the best of our knowledge, this is the first application of Random Forests in the problem of trading with the EUR/USD exchange rate providing extremely satisfactory results.


EUR/USD Exchange Rate, future direction prediction, naive strategy, MACD strategy, Naive Bayesian Classifier, K-nearest neighbors classifier, SVM, Random Forests, leverage, transaction costs


Download data is not yet available.


C. Dunis, M. Williams, “Modeling and trading the Euro/Us Dollar exchange rate: do neural networks perform better?”, Derivatives Use, Trading and Regulation, Vol. 8, No. 3, pp. 211-240, 2002

C. Ullrich, D. Seese, S. Chalup, “Foreign exchange trading with support vector machines”, Advances in Data Analysis: Studies in Classification, Data Analysis and Knowledge Organization, Part VII, pp. 539-546, 2007 DOI:

C. Dunis, J. Laws, G. Sermpinis, “Modelling and trading the EUR/USD exchange rate at the ECB fixing”, The European Journal of Finance, Vol. 16, No. 6, pp. 641-561, 2010 DOI:

Thomson Reuters Datastream: datastream/

J. Holland, Adaptation in natural and artificial systems: an introductory analysis with applications to biology, control, and artificial intelligence, Cambridge: Mass, MIT Press, 1995

T. Cover, P. Hart, “Nearest neighbor pattern classification”, IEEE Trans. Inform. Theory, Vol. 13, No. 1, pp. 21-27, 1967 DOI:

C. Howson, P. Urbach, Scientific Reasoning: The Bayesian Approach, Third Edition, Open Course Publishing Company, 1993

S. Haykin, Neural Networks: A Comprehensive Foundation, Prentice Hall, 1998

V. Vapnik, The Nature of Statistical Learning Theory, Springer 2000 DOI:

L. Breiman, “Random Forests”, Machine Learning, Vol. 45, No. 1, pp. 5-32 2001 DOI:

K. Manish, M. Thenmozhi, “Forecasting stock index movement: A comparison of support vector machines and random forest”. In Proceedings of ninth Indian institute of capital markets conference, Mumbai, India, 2005


How to Cite

K. Theofilatos, S. Likothanassis, and A. Karathanasopoulos, “Modeling and Trading the EUR/USD Exchange Rate Using Machine Learning Techniques”, Eng. Technol. Appl. Sci. Res., vol. 2, no. 5, pp. 269–272, Oct. 2012.


Abstract Views: 3664
PDF Downloads: 2288

Metrics Information

Most read articles by the same author(s)