This is perhaps the grossest misperception in this business right now. There has not yet been one successful attempt to achieve this goal consistently. Over the long term, there is more risk in being out of the market than being in. That's a fact. Time is our friend, not timing.
Time is our greatest weapon in dealing with volatility.
We allocate our personal investments across different asset classes with this in mind. Thus my forty year old male colleague is investing in equity funds for his retirement in fifteen years' time, balanced funds for his youngest child's college fees in eight years, and debt funds for the eldest child's fees in four years. He has a patient, prudent attitude to investing, and I know he will be successful. Instead, consider investing on a disciplined, monthly basis. Your professional adviser can guide you on this topic.