Stocks ended slightly higher on Monday after four weeks of losses as investors hesitated to take big risks without a catalyst for buying.

The S&P 500 has dropped 12.7 percent so far in August on fears of another recession and the ongoing financial crisis in Europe.