Local Extrema Predictor (LEAP)
A machine learning-based market regime detection and mean reversion strategy

Mesirow Currency’s Mehryar Emambakhsh, Ph.D. presents Local Extrema Predictor (LEAP), a novel strategy for forecasting mean reversion in foreign exchange (FX) markets.
Mehryar Emambakhsh, PH.D. | Vice President, Senior Research Scientist

Local Extrema Predictor (LEAP)
Mesirow Currency’s Local Extrema Predictor (LEAP), is a technical strategy designed to identify mean reversion in financial time series, with a focus on FX spot rates.
LEAP
- uses a wide range of economic data — both FX and non-FX — as input to a supervised machine learning model
- includes a set of pre-processing and feature extraction techniques that summarise statistical patterns (momentum, trendiness, e.g.)

What is mean reversion?
Mean reversion is a financial theory that suggests asset prices and historical returns tend to revert to their long-term average over time. Mean reversion is used for market regime detection and risk sentiment analysis and is driven by a mix of economic, behavioural, and institutional factors.
In foreign exchange (FX) markets, key influential factors include macroeconomic fundamentals, central bank actions, investor sentiment, and geopolitical events. These factors often interact in complex, non-linear ways. This makes MR detection highly context-dependent and computationally difficult.

LEAP input data
LEAP draws on dozens of FX and non-FX data sources to model mean reversion as a ternary classification problem categorising each point in the target FX series as either
- peak
- trough
- neutral
These inputs are transformed into abstract features for our model.

Labeling
Each extremum is assigned a prominence score, borrowing the definition from topography — a measure of how much a peak stands out relative to its surrounding landscape. In our context, prominence quantifies how significantly a peak or trough deviates from recent market movements.

Feature space
To construct the feature space, a comprehensive software package has been developed, supporting not only feature extraction but also pre- and post-processing of the data. Model training is conducted through rolling k-fold cross-validation, with Support Vector Machines (SVM) hyperparameters optimised via Bayesian techniques. To ensure adaptive learning and reduce dimensionality, a genetic algorithm based feature selection mechanism is employed as a wrapper around the entire pipeline.
Strategy is evaluated using daily FX spot rates for 27 USD-based currency pairs, covering both emerging and developed market countries.
A typical LEAP signal at time t for currency pair I. st(i) and pt(i) are the signal and its corresponding confidence, respectively. st(i) denotes the MR signal produced at t for the i-th currency pair. Alongside the signal itself, it is valuable to have an indication of the model’s confidence in its prediction.
Table 1: SIGNAL GENERATED BY LEAP
Signal-date | CCY_pair | Signal | Probability |
YYYY-MM-DD | XXXYYY Curncy | st(i) | pt(i) |

Testing
When integrated into Mesirow Currency’s Alpha strategies: Extended, Asia, and Emerging, LEAP contributes positively to their overall information ratios. LEAP also demonstrates relatively low correlation with the other technical models within the strategies. Consistent with expectations for a mean reversion strategy, LEAP exhibits negative correlation with trend-following strategies and positive correlation with other mean reversion strategies, such as Mesirow Currency’s Short-Term Reversion and Momentum models.
Table 2: LEAP only backtest, during testing and out-of-saMple periods
LEAP only back tests | Annualised returns (%) | IR | Annualised returns (%) - OoS period | IR - OoS period |
Extended | 6.56 | 0.55 | 16.18 | 1.38 |
Only DM | 6.77 | 0.54 | 14.20 | 1.12 |
Only Asia | 4.74 | 0.37 | 13.15 | 1.04 |
Only EM | 4.52 | 0.38 | 15.75 | 1.36 |
Figure 1: Correlation of LEAP v. other alpha models

Source: Mesirow

Exploration of GA Results
One of the key advantages of using GA for feature selection — compared to dimensionality reduction methods like PCA or LDA — is the explainability of the selected inputs. Excluding indicators based on cross-currency and USD-quoted pairs, input indicators can be grouped into categories. Figure 2 shows the frequency with which each feature category was selected by the GA for the EM, DM, and Asian currency baskets, respectively. Across all three baskets, Differentials and Global indicators emerge as the most frequently selected features. This highlights the importance of geopolitical context and cross-country comparisons in identifying MR in FX.
Figure 2: FEATURE TYPE FREQUENCY

Source: Mesirow
Another important input to LEAP comes from cross-currency pairs calculated for each target currency. For example, when predicting reversions in USDCAD, LEAP also computes all CAD-based crosses against the other 26 currencies in the basket — e.g. CADGBP, CADBRL, CADCHF, CADTWD, and so on. These cross rates are treated as separate feature subsets, and the GA selects the most informative ones. Once this process is completed across all 27 USD-quoted currency pairs, we can visualise and analyse which currencies are most frequently referenced when constructing cross-currency features.
Figure 3: TOTAL NUMBER OF TIMES EACH CURRENCY IS REFERRED TO – DEVELOPED MARKETS

Source: Mesirow
Although LEAP has been evaluated on USD-denominated FX rates, the framework is readily generalisable to other currency crosses and can operate at arbitrary time resolutions. Furthermore, the underlying philosophy of LEAP lends itself well to applications beyond FX, potentially extending to other classes of financial instruments.
LEAP has been incorporated into Mesirow Currency’s Alpha suite, deployed in live trading since mid-April 2025.
