Investors are often confused about when to invest in the stock market and when to book profits. Understanding the different market cycles can help resolve this dilemma to a large extent.