Press "Enter" to skip to content

Find Cointegrating Pairs To Trade

In this research I am going to search for cointegrating security pairs that can potentially be used in a pair trading strategy. I am going to fetch the data from the NASDAQ official web site.

Import the necessary Python modules

As we can see not all the pairs found cointegrate. But by plotting their spread we can easily filter out the ones that might in order to analyze them further.

Source code