Stocks close at record highs in 4-day winning streak