The prospect of de-escalation encouraged investors to buy risk assets, including battered technology and software stocks.