(Reuters) -Canada's main stock index rose to a near three-week high on Tuesday, helped by gains for the technology and energy sectors, as some optimism took hold of a letup in the global trade war. The Toronto Stock Exchange's S&P/TSX Composite Index ended up 297.12 points, or 1.2%, at 24,305.98, its highest closing level since April 3. Wall Street also rallied, helped by a report that U.S. Treasury Secretary Scott Bessent had said a tariff standoff with China was unsustainable, and that he expects the situation to de-escalate.