Update code to plot adjusted test graph for pairs trading