The U.S. dollar edged lower on Tuesday but retained most of its recent gains, supported by sustained optimism over a potential tariff agreement between the United States and China. Hopes of easing trade tensions between the two economic giants helped temper fears of a prolonged trade war.