System for Testing Statistical Arbitrage Strategy This script contains the functionality needed to test for co-integration and backtest a medium frequency statistical arbitrage strategy.