The gains left the S&P 500 in positive territory for the year and above its 200-day moving average for the first time since Aug. 19. Microsoft shares (MSFT.O) rose 10.1 percent to $52.87, their highest in 15 years, after adjusted revenue beat expectations for the ninth quarter in a row. Microsoft gave the biggest boost to the three indexes, accounting for nearly a fifth of the Dow’s gain and leading a strong rally in technology stocks.