Stocks lose steam as Nvidia optimism fades, dollar steady