I put this strategy together a couple weeks ago while the market was going haywire. The increase in volatility caused the spreads between SPY and some of the sector ETFs to deviate from their normal range, so I went looking for trades.
XLE is is by far the most out of whack, this is a shot of the 100 day spread, it's still close to an all time high.
I tossed together this algo to backtest this sort of trade. It buys/sells the spreads between SPY and sector ETFs when the z-score of their spreads deviates outside the +-2 range. This test used a 100 day regression without a constant term to keep the algo close to market neutral. It looks like these trades have been arbitraged away in recent years, but maybe with some modifications and some tlc you can get it working.
A drawback of this is long periods of inactivity, maybe replacing the assets with ETF/component stocks would increase the trading activity. Then again, with Quantopian there's no need to maintain a tech infrastructure, so infrequent/long horizon strategies can essentially be left running indefinitely.