It is critical to understand when to buy the dip, and when to sell the rip. Here’s how.