(Bloomberg) -- The dollar rallied to a five-month high as investors bet that the resilient US economy means interest rates will need to stay elevated. 

The Bloomberg Dollar Spot Index climbed as much as 0.7% on Tuesday, bringing its advance since mid-July to above 4%. The ascent has been sharp and steady, with the currency recently notching seven straight weeks of gains, the longest such run since 2018. 

Investors have become increasingly bullish on the dollar against a backdrop of weak growth in China and Europe. Rising US yields and a pullback in equity prices have also bolstered the case. Goldman Sachs Group Inc. wrote in a research report that it now sees a 15% chance the US will slide into recession, down from 20% previously. 

“The two main drivers of dollar strength, which are higher yields and weak growth conditions outside of the US, have been thrust straight back into the limelight,” said Simon Harvey, head of FX analysis at Monex Europe. “It’s been quite difficult to argue against the dynamics we’ve been seeing.”

Read More: Goldman Cuts US Recession Chances to 15% on Improved Inflation

If the Bloomberg dollar index ends the week higher again, it’ll mark the longest stretch in data going back to 2005. 

Recent data suggests the US economy is holding up in the face of massive monetary tightening. At the same time, weak growth in Europe is raising speculation that central banks may need to start cutting rates sooner, while China is facing a severe property slump. 

The US currency touched strongest levels since June against the euro and the pound. Against the yen, it is at the highest since early November. 

The euro against the dollar “looks vulnerable to further correction lower toward the 1.07 handle in response to further data disappointments and less hawkish European Central Bank rhetoric,” said Valentin Marinov, head of G-10 FX strategy at Credit Agricole. The pair traded at 1.0730 on Tuesday. 

Options traders are also positioning for further strength. One-year risk reversals in the Bloomberg index, a barometer of market sentiment over the longer term, are trading near their most bullish levels since April.

And when it comes to positioning, there is room for investors to add to bets for more dollar appreciation. According to CFTC data on non-commercial futures positions, the aggregate long position is near the lowest level in more than two years.

--With assistance from Vassilis Karamanis and Anya Andrianova.

(Updates prices, adds comment in eighth paragraph.)

©2023 Bloomberg L.P.