skip to Main Content
×Close search
Quantitative Investing Blog - Lucena Research

How to Use Arbitrage Trading for Foreign Exchange Strategies

Cointegration is an excellent time series analysis geared to identify and exploit a high conviction trade on two time series that diverge from their expected normal behavior. 
Erez Katz

Erez Katz, Lucena Research CEO and Co-founder 

A Scientific Approach to Arbitrage Trading in Foreign Exchange


Cointegration is a rather powerful trading technique for statistical arbitrage. I have seen cointegration used effectively in foreign exchange strategies, or more specifically currency pairs trade. However, the technology can be applicable to any group of assets that exhibit certain “behavior.” 

Find Unique Opportunities With Short-Term Arbitrage

The following image represents the currency pairs of G-10 over time. Each currency is measured against the average of all remaining nine paired currencies 

For example: Daily USD is a time series of USD^ = mean (USDJPY, USDGBP, USDSEK, USDCHF etc.).

currency pairs of G-10 over time, Cointegration in foreign exchange

What’s striking in the above chart is how the various time series are uncorrelated against each other over time. Also, it’s interesting to see how the currencies move away from each other and thereafter revert back to a normal distance.

Another interesting observation is that in general currency pairs don’t really appreciate over time like stocks. In contrast, the below image highlights how SPY is overlaid to underscore the distinction between currencies and stocks.


Currencies in G-10 mean values against all currencies over time compared to SPY

Our theory is highly cointegrated time series that don’t stray away from each other outside of an expected range, present a unique investment opportunity for short-term arbitrage.

Now, how do we empirically validate the strategy through backtesting and model portfolio simulations?

How to Form Your Arbitrage Strategy

Here are just a few of the goals needed to form our investment strategy: 

  • - Identify which two currency pairs should be arbitraged against each other.
  •  - Identify the optimal time to enter an arbitrage trade (long one currency and short the other). 
  •  - Identify the optimal time to exit the paired positions in order to take profit or minimize losses. 
  • These are not trivial challenges, but luckily pattern matching technology and data science can come in handy and offer compelling solutions. 

Utilize Cointegration to Maximize Time Series Data

Cointegration identifies the degree to which two variables or time series are sensitive to the same average value over a specific period of time. Thus, cointegration does not reflect whether the pairs would move in the same or opposite direction, but can tell you whether the distance between them remains within a well-defined range over time.

In layman’s terms, cointegration is a measure of how time series data representations are related to each other. Cointegration asserts that the difference in behavior of time series graphs can be attributed to a mathematical representation that captures their difference into a variable. The smaller the variable, the more aligned the two-time series.

More about time series data to forecast stock prices here. 

Correlation vs. Cointegration

Correlation indicates that two time series move in harmony (mainly in the same direction). In contrast, cointegration time series can move opposite each other and still be cointegrated since their variance can be measured mathematically.

I'll reference a good analogy from Quora: Suppose you see two drunk guys (i.e., two random walks) wandering around. They don't know each other (they're independent), so there's no meaningful relationship between their paths. 

But suppose instead you have a drunk guy walking with his dog. This time there is a connection. Notice that although each path individually is still an unpredictable random walk, given the location of one of the man or dog, we have a pretty good idea of where the other is; that is, the distance between the two is within a well-defined range, and so is fairly predictable.

For example, if the dog wanders too far away from his owner, he’ll tend to move back in his direction to avoid losing him, so the two stay close together despite a tendency to wander around on their own. We describe this relationship by saying that the man and his dog form a cointegrated pair.


How to Identify Cointegration 

There is a strong argument that correlation is one form of cointegration and highly correlated assets can be leveraged for arbitrage trading. When a pair of securities move predictably in relationship to each other, and that tight correlation is broken, it’s fairly safe to assume that eventually they will become cointegrated again. 

Let’s look at a concrete example of how one could potentially profit by identifying the points in which a highly correlated pair diverge. Regardless of which direction the pairs will proceed into the future, the mere fact that they will eventually converge can be exploited. By buying long the security that diverged lower and selling short the security that diverged higher, a trader will profit by closing both the long and short positions when the pair converge back.

Read more about short only investment strategies.

This can be done scientifically using the QuantDesk® replication engine. Suppose I’d like to find the most correlated currency pair to the USDAUD (US dollar & Australian dollar currency pair). The resulting replication identified USDCAD as most correlated, as the graph below shows:


correlated currency pairs to USDAUD


Overall, the two pairs USDAUD and USDCAD are mostly correlated. But it’s also very easy to see that at times they do diverge and eventually converge again.

If we zoom in to view a six months period, we can easily identify entry and exit opportunities.


correlated currency pair to USDAUD & USDCAD.


It’s clear when a divergence is meaningful enough for an entry and when an exit should occur.

Obviously, the example illustrated here is an oversimplification of what more exhaustive research can produce. As a guideline, the research should be predicated on four main steps:

  • First, we need to assess what constitutes the most “predictable” cointegrated pair.
  • Identify what level of divergence should be considered for entry.
  • Identify what level of convergence should be considered for exit.
  • Consider an exhaustive brute force parametric search in order to consider optimal execution guidelines. Such as:
 - Number of pairs to hold.
 - Leverage levels and allocation restrictions such as min/max allocation per executed pair.
 - Exit criteria or how long to hold if convergence doesn’t occur. 
 - Stop loss considerations – when the pairs start to wander too far apart.

Below is a backtest report of G-10 FX pairs traded frequently with an average hold time of nine days over 10 years.


G-10 FX currency pairs

Past performance is not indicative of future returns.

Patience With Cointegration Can Pay Off

To be successful with cointegration, one has to be patient and sit on cash waiting for the opportune time to enter a high conviction trade. This technology is analogous to event-based investments, by which the fund’s return are derived from infrequent, albeit high conviction trades.


Interested in short opportunities and co-integration strategies? Watch our panel discussion:

"Finding Tradable Signals in Alt Data"




More Posts

Never miss a new blog post, subscribe to our newsletter.