There was once a woman who prayed every day for 20 years that she'd win the lottery. Every single day. Finally, in despair, she said, "God, I've been a true and faithful servant and have lived an exemplary life. Why won't you grant me this one thing?"

"Look," said God, "at least meet me halfway -- and buy a lottery ticket."

Buy the ticket
Similarly, to take advantage of the greatest long-term wealth-building machine available to us individual investors, you have to be in the market. And if the current craziness is keeping you away because you fear another huge drop, you're ignoring the advice of some of history's top investors.

In the latest edition of his book Stocks for the Long Run, Jeremy Siegel charted returns for a hypothetical unlucky investor who happened to invest at the absolute top of six major 20th-century market peaks. After 30 years, this investor actually accumulated four times more wealth in stocks than he would have in bonds, and five times more than in T-bills. For a 20-year period, he doubled the bonds' return.

There's more where that came from
Consider John Templeton, founder of Templeton Growth Fund and widely regarded as one of the best investors of his generation. His advice about getting into the market is simple: "The best time to invest is when you have money. This is because history suggests it is not timing which matters, it is time."

Our own David and Tom Gardner, who've beaten the market by a tremendous amount in Motley Fool Stock Advisor, also eschew timing the market. "The best time to invest was yesterday," says Tom. "The next-best time is today." So even though the tongue-in-cheek title of this article implies you've missed your best chance, you can see that you really haven't. If you've got money you won't need for five years or more, just get in the game as soon as you can.

Still need convincing? Earlier this year I conducted a study that looked back a decade, specifically searching for companies that had been up 25% or more in one year. Surely, many investors back then were worried that stocks were too rich and ready for a great fall.

Well, a gnarly bear market did start up a couple of years later, and yes, these stocks fell. Yet despite their large prior one-year gains, and despite two big bear markets, their returns were solid for those who held for the long term -- especially when compared with a market that had lost 27% in the meantime.

Company

1998-1999

1999-2009

Gilead Sciences (NASDAQ:GILD)

27%

1,556%

Amazon.com (NASDAQ:AMZN)

646%

62%

Walgreen (NYSE:WAG)

35%

26%

CVS Caremark (NYSE:CVS)

31%

33%

Amgen (NASDAQ:AMGN)

96%

68%

Starbucks (NASDAQ:SBUX)

54%

65%

NetApp (NASDAQ:NTAP)

182%

57%

S&P 500

18%

-27%

Data provided by Capital IQ.

There are no guarantees
We're in another scary period, but history shows that if you can find superior businesses with good management, hold for the long haul, and add new money regularly, you will rarely be disappointed.

That's the advice David and Tom give to their Stock Advisor members, and they help them with not only new recommendations each month, but also with the top five stocks to buy right now. They've been at it a long time, through bear and bull, and their average recommendation is beating the market by 52 percentage points.

Right now, a special no-obligation free trial will give you access to all these stocks and more -- including the 10 best buys for the current market. Here's more information.

This article was first published Jan. 25, 2008. It has been updated.

Rex Moore is a Fool analyst and thinks now is a good time to buy stocks. He owns none of the companies mentioned. Amazon.com and Starbucks are Stock Advisor picks. This information is brought to you by the Fool's disclosure policy.