Skip to main content
QUICK REVIEW

[Paper Review] Currency exchange prediction using machine learning, genetic algorithms and technical analysis

Gonçalo Abreu, Rui Neves|arXiv (Cornell University)|May 29, 2018
Stock Market Forecasting MethodsDecision Sciences13 references8 citations
TL;DR

This paper proposes a hybrid machine learning framework that combines genetic algorithms (GA) with Naive Bayes classification to optimize technical analysis features for predicting EUR/USD exchange rate movements. By using GA to search the high-dimensional feature space of technical indicators and visualizing model decisions via t-SNE, the system boosts investment return from 0.43% to 10.29% on validation data, demonstrating that market inefficiencies and mean reversion patterns are learnable beyond random walk assumptions.

ABSTRACT

Technical analysis is used to discover investment opportunities. To test this hypothesis we propose an hybrid system using machine learning techniques together with genetic algorithms. Using technical analysis there are more ways to represent a currency exchange time series than the ones it is possible to test computationally, i.e., it is unfeasible to search the whole input feature space thus a genetic algorithm is an alternative. In this work, an architecture for automatic feature selection is proposed to optimize the cross validated performance estimation of a Naive Bayes model using a genetic algorithm. The proposed architecture improves the return on investment of the unoptimized system from 0,43% to 10,29% in the validation set. The features selected and the model decision boundary are visualized using the algorithm t-Distributed Stochastic Neighbor embedding.

Motivation & Objective

  • To investigate whether technical analysis features can predict currency exchange rate movements better than random guessing.
  • To develop an automated feature selection architecture using a modified genetic algorithm to optimize Naive Bayes classifier performance.
  • To improve model interpretability by visualizing decision boundaries and data structure using t-SNE embedding.
  • To validate the system using k-fold cross-validation and demonstrate significant performance gains over baseline models.
  • To identify market inefficiencies, such as abnormal price surges, that the model learns to associate with mean reversion.

Proposed method

  • A modified genetic algorithm performs feature selection by optimizing the cross-validated performance of a Naive Bayes classifier on technical indicators.
  • Technical indicators including RSI, CCI, MACD, ROC, Stochastic Oscillator, and ATR are used as input features to transform non-stationary price data into stationary representations.
  • The Naive Bayes classifier applies Bayes' theorem with conditional independence assumptions, computing P(y|x) ∝ P(y)∏P(xi|y) for binary classification of price direction.
  • k-fold cross-validation is used to estimate model performance and prevent overfitting, ensuring robust evaluation across training and validation splits.
  • t-SNE is applied to embed high-dimensional feature vectors into 2D space, preserving local structure and enabling visualization of decision boundaries and cluster patterns.
  • The system evaluates return on investment (ROI) on a validation set to measure real-world trading performance improvement.

Experimental results

Research questions

  • RQ1Can technical analysis features reliably predict future EUR/USD exchange rate movements beyond random chance?
  • RQ2Can a genetic algorithm effectively search the vast space of technical indicator combinations to optimize a Naive Bayes classifier’s predictive performance?
  • RQ3Does the optimized model capture meaningful market patterns, such as mean reversion after abnormal price movements?
  • RQ4Can t-SNE visualization reveal interpretable clusters in the feature space that correspond to distinct market regimes or inefficiencies?
  • RQ5To what extent does the optimized system improve ROI compared to an unoptimized baseline?

Key findings

  • The optimized system achieved a 10.29% return on investment on the validation set, a significant improvement from the unoptimized system’s 0.43%.
  • The Naive Bayes classifier with GA-optimized features improved validation accuracy from 51.39% to 53.95%, indicating meaningful predictive power.
  • t-SNE visualization revealed distinct local clusters in the feature space, with high-confidence predictions corresponding to patterns like abnormal short-term price surges.
  • The model demonstrated higher confidence in predicting negative returns after sharp price increases, suggesting it learned mean reversion behavior.
  • The presence of structured clusters in t-SNE plots, especially in optimized feature sets, indicates the model captured non-random, repeatable market patterns.
  • The results challenge the random walk hypothesis by showing that technical features can encode exploitable inefficiencies in the EUR/USD exchange rate.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.