Cramer: Investment Strategy Has Changed

The stock market ended in the green yet again on Tuesday, with the Dow Jones industrial average and S&P 500 index closing at their best levels since October 2007, lifted by optimism for more merger deals and after positive economic data from Europe.

The Dow picked up 53.91 points, or 0.39 percent, to end at 14,035.67, led by technology giant Cisco and conglomerate General Electric. Following Tuesday's close, the Dow is within 1 percent of its all-time closing high of 14,164.53 hit on October 9, 2007.

The S&P climbed 11.15 points, or 0.73 percent, to finish at 1,530.94. The Nasdaq rose 21.56 points, or 0.68 percent, to close at 3,213.59, finishing at its best level since November 2000.

The CBOE Volatility Index (VIX), widely considered the best gauge of fear in the market, slid near 12.

(Read More: Cramer: This Is a 'Great Gatsby' Market)

Most key S&P sectors ended higher, led by consumer staples and energy.

Jim Cramer
Jonathan K. Li | CNBC

"People like to fight the tape, even on a terrific day like today," said Jim Cramer, host of CNBC's "Mad Money w/Jim Cramer." "It's a natural instinct given how mediocre stocks have been for so many years. The 'buy the dips sell the rips' attitude has been the way to win since 2000, but it isn't winning now."

After all, the Dow and the S&P 500 have both rallied 7 percent since the beginning of the year. The S&P has climbed for the past seven-straight weeks, though most of the gains have been small. Anyone who sold rips several months ago hasn't had a chance to buy dips because there hasn't been any, Cramer explained.

To Cramer, the market is likely to continue to rally so long as businesses have the "urge to merge." There have been a flurry of mergers and acquisitions in the past week or so, including a move by 3G and famed investor Warren Buffett's Berkshire Hathaway to buy H.J. Heinz for $23.3 billion. Meanwhile, OfficeMax and Office Depot are also in talks for a merger deal.

(Read More: We Know M&A's Back—But Where's It Going Next?)

"Confidence is back particularly among those who have the most dollars to back it up," Cramer said. "I know the first person to say R-I-P to sell the RIPS will be hit with a gigantic sell off right in his face. But let's tell the truth, waiting for a dip in the face of pool of liquidity … is like waiting for the Pacific to run dry."

(Read More: Pisani: Can the Rally Continue?)

Call Cramer: 1-800-743-CNBC

Questions for Cramer? madmoney@cnbc.com

Questions, comments, suggestions for the Mad Money Web site? madcap@cnbc.com