I'd like to try out a pairs trading strategy and clearly an important part of such a strategy is to select good pairs. How would one go about creating a universe selection filter based on price history? Would it be possible to subscribe to two assets, compare their histories, and then unsubscribe from them if they are poor candidates? Or do I need to do such comparisons outside of quantconnect and then feed the results to my running algorithm?

Author