Stocks have surged since their April lows, with demand especially high for higher-risk equities and technology stocks—including those issued by firms with unproven profitability. But economic growth is slowing, and trade-related uncertainty has yet to be resolved.