Code that details how to carry out the pairs trading formula.