The Dow Jones industrial average, an index of 30 U.S. stocks and a gauge of financial markets, closed at a record high of 14,253 on Tuesday. It Dow has more than doubled since hitting a 12-year low in March 2009.How have stocks managed to recover and where is the market is headed?Q: How did the record happen? A: Stocks have been rallying since they bottomed out in March 2009 during the Great Recession. Companies slashed costs in the depths of the recession, and that helped earnings increase when the economy began to recover. More than $2 trillion of stimulus from the Federal Reserve also underpinned the rally by keeping long-term interest rates low. As well as helping the housing market recover, low rates encourage companies to borrow and invest.So why are stocks at a record when the economy still feels bad?Stock markets look ahead. And investors are optimistic that the housing and job markets are recovering. Also, all the big issues that investors worried about last year seem to have sorted themselves out. Europe has stabilized after flirting with a meltdown last summer, uncertainty about the election is over and the Chinese economy seems to have stabilized.And what have bonds been doing?For the most part, the rally in stocks has been accompanied by a rally in bonds as the Fed has pledged to keep rates low and the stimulus flowing until the economy is fully recovered. Yields, which move inversely to bond prices, have been edging up recently though, suggesting that the rally may be over.Does the stock rally still have legs?The bulls say that based on valuations such as stock prices compared against earnings, many equities are cheap compared with historical averages and are a more attractive investment than bonds, which are trading close to record highs. The bears will tell you that worries about growth in Europe and China still linger and that bickering in Washington could still derail the rally. Also, economic growth, while steady, is nothing to get excited about.How much would I have made if I'd gotten in at the bottom?An investor who put $1,000 into the stock market March 9, 2009, the day Dow bottomed out after the Great Recession, would now have $2,406. That's a total return of 140.6 percent, including stock gains and dividends.