Implementation and simulation of Pairs Trading, a stock market trading strategy.