Entry and Exit Timing: When to Open and Close Pair Trades