U.S. stocks closed higher for the third consecutive day, boosted by strong tech stock performances, including gains from Nvidia, Microsoft, and Tesla. Investor optimism grew with signs of progress in the U.S.-China trade dispute, though concerns about long-term economic impacts remain.