NEW YORK ( TheStreet) -- Stocks managed to finish with marginal gains Tuesday after losing steam from an earlier rally and dipping into negative territory. The Dow Jones Industrial Average gained 57 points, or 0.6%, to close at 9744. The S&P 500 added 6 points, or 0.5%, to 1028, and the Nasdaq closed 2 points higher, or up by 0.1%, at 2094. Peter Cardillo, chief market economist at Avalon Partners said an oversold market and gains across global markets on Monday when U.S. markets were closed for the holiday weekend made for a nice technical on Tuesday. The week's lack of economic news and anticipation surrounding the upcoming earnings season also helped lift the market. "The ISM Services index slowed, but that's no news to the market, which has already discounted for slower growth ahead," Cardillo said. World markets strengthened Tuesday on comments from the Reserve Bank of Australia , which said the country's economic growth is on track, and China's expansion is stabilizing at a more sustainable pace. Overseas on Tuesday, Hong Kong's Hang Seng rose 1.2% while Japan's Nikkei climbed 0.8%. The FTSE in London surged 2.9%, and the DAX in Frankfurt gained 2.2%.