Stocks shook off an early slide and closed higher Tuesday as Wall Street welcomed more modest moves in the bond market after a recent surge in Treasury yields weighed on the market. The S&P 500 rose 0.9 percent after having been down 0.7 percent in the early going. The selling eased by afternoon, with technology stocks reversing course and turning higher. The benchmark index was coming off five straight losses and hadn’t had a winning day since the first trading day of the year, when it set an all-time high. The Dow Jones Industrial Average rose 0.5 percent and the tech-heavy Nasdaq rose 1.4 percent. Smaller company stocks also bounced back, pushing the Russell 2000 1.1 percent higher. Bond yields, which have risen sharply since the beginning of the year, edged lower. The yield on the 10-year Treasury fell to 1.74 percent from 1.77 percent late Monday. Yields affect interest …