I've calculated the correlation coefficient on every possible stock pair in the S&P, and narrowed the list down to about 150 pairs with the cc I'm looking for.  

Now I'd like to run backtests on every one of these pairs and compare the results.  Is there a way to automate this in QC?

The backtest code to be used is attached, run on the pair DISH and UNM.

Author