Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Relative Value Arbitrage Algorithm

The strategy involved a pairs trade, taking the securities BB&T corporation and Capital One Financial. The two securities were found to have a cointegration link, possibly due to both being bank securities. The strategy trades long/short, depending on whether the securities' prices diverge or converge. Hedging is involved as well. The strategy is beta hedged, meaning it correlates very little to a market index(the S&P 500). In addition, the backtest provided positive results, with a sharpe ratio over 2 and a max drawdown of only -2.41%(most institutions accept drawdowns of up to 10%).