Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
A Simple Pairs Trading Strategy with Finance Stocks

This script does a brute-force cointegration tests for all stocks in the finance sector to find strongly cointegrated pairs and trades when the spread is wider/narrower than the average by some threshold.