U.S. stocks rose Tuesday, lifted by a sharp rally in energy stocks. Oil prices posted their biggest daily gain in seven months. In U.S. economic news, retail sales rose 0.8 percent in October following a 1 percent gain the previous month, indicating stronger consumer spending in the fourth quarter. Business inventories increased slightly in September, in line with expectations. The U.S. dollar rose slightly versus other major currencies, hovering near an 11-month high, helped by the U.S. retail-sales data. West Texas Intermediate (WTI) crude futures rose $2.49, or 5.8 percent, to $45.81 a barrel on the New York Mercantile Exchange. The contract hit a three-month low of $42.20 on Monday. Gold futures rose $2.80 to $1,224.50 an ounce. The Dow Jones industrial average rose 54.37, or 0.3 percent, to 18,923.06, recording a new record high and extending its winning streak to seven days. The broader Standard & Poor's 500 index rose 16.19, or 0.75 percent, to 2,180.39. Energy rose 2.7 percent to lead seven sectors higher, while real estate led four sectors lower. The technology-heavy Nasdaq composite index rose 57.22, or 1.1 percent, to 5,275.62.