Classifying short-term forex trading opportunities with machine Learning

In this study, it was desired to investigate if short term movements in the forex market can be classified with success. Using hourly price data from 2010-2024 (with 2024 as the validation set), data labels were constructed for each hour, and technical indicators along with chart patterns and custom variables were constructed and used as independent variables for the classification problem. Time series clustering using k-means and dynamic time warping was also utilized as a feature to characterize the shape of the data to understand its future short-term price movement behavior. Several classifiers were tested, with XGBoost yielding the best results. It obtained a class-weighted accuracy of 82.6% and F1 score of .826. Using this classifier as a way to make simulated trading decisions, a system was constructed and generated 11% annualized returns or higher using the validation dataset, with a maximum portfolio drawdown of 10%.

Publication Details

Journal
UPM Digital Archive (Technical University of Madrid)
Published
2025-07-04
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Classifying short-term forex trading opportunities with machine Learning

UPM Digital Archive (Technical University of Madrid)
Geochemistry and Geologic Mapping
article

Classifying short-term forex trading opportunities with machine Learning

article en

Abstract

In this study, it was desired to investigate if short term movements in the forex market can be classified with success. Using hourly price data from 2010-2024 (with 2024 as the validation set), data labels were constructed for each hour, and technical indicators along with chart patterns and custom variables were constructed and used as independent variables for the classification problem. Time series clustering using k-means and dynamic time warping was also utilized as a feature to characterize the shape of the data to understand its future short-term price movement behavior. Several classifiers were tested, with XGBoost yielding the best results. It obtained a class-weighted accuracy of 82.6% and F1 score of .826. Using this classifier as a way to make simulated trading decisions, a system was constructed and generated 11% annualized returns or higher using the validation dataset, with a maximum portfolio drawdown of 10%.

UPM Digital Archive (Technical University of Madrid)
Openalex Percentile: Top 27%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Classifying short-term forex trading opportunities with machine Learning · UPM Digital Archive (Technical University of Madrid) (2025) | TGRS Research Map | TGRS