A few stocks that saw meaningful gains in an otherwise rough week could be due for sharp declines. The market notched its first losing week in three on Friday, with the S & P 500 finishing the five-day period with a 0.5% loss. The Nasdaq Composite and Dow Jones Industrial Average also fell on the week, slipping 0.3% and 0.2%, respectively. The week’s losses came as investors waited for clarity on potential trade deals between the U.S. and its trading partners, especially China, given that the two countries are set to meet on the matter this weekend. That follows President Donald Trump unveiling a trade deal with the United Kingdom on Thursday, which helped to boost sentiment. Using the CNBC Pro stock screener tool , we identified the most overbought and oversold stocks on Wall Street by weighing their 14-day relative strength index, or RSI. An RSI above 70 signals that a stock might be overbought and could be due for a tumble. An RSI below 30, meanwhile, suggests that a name could be oversold and experience a move to the upside. Microsoft was among the most overbought names this week, having an RSI of 70.2. The “Magnificent Seven” name also made the list of Wall Street’s most overbought names for the week before after gaining 11% in that period following its latest earnings and revenue beat as well as its upbeat outlook. The stock advanced nearly 1% this week. Shares are outperforming the S & P 500 in 2025, up 4% while the broad market index is down nearly 4%. Microsoft is well-liked on Wall Street, with most analysts rating it a buy or strong buy, and consensus price targets calling for more than 14% upside, per LSEG. Rockwell Automation , which soared more than 16% this week, was another name in the overbought category. That stock had an RSI of 71.2, and its average target of almost $300 implies only limited upside potential of 1.7%. On Wednesday, shares of the automation company jumped nearly 12% after it reported better-than-expected earnings and revenue for the fiscal second quarter. The company also raised its full-year earnings guidance. Fertilizer producer Mosaic and HR and payroll software provider Paycom Software were two other overbought stocks this week, seeing an RSI of more than 70 for both. Mosaic gained more than 7% over the past week, while Paycom climbed more than 11% in the period. In the health and science space, biotechnology stock Vertex Pharmaceuticals and insurer UnitedHealth Group made the list of oversold stocks. Vertex had an RSI of 28, while UnitedHealth had a 26.7 RSI. Vertex shares plunged more than 15% this week following its disappointing quarterly results . Shares are up more than 5% in 2025, but the stock has hit a rough patch in recent months, falling almost 18% in the past six. UnitedHealth, on the other hand, shed almost 5% this week, bringing its year-to-date losses to nearly 25%. It has also slid more than 34% in the past month amid the company slashing its annual profit forecast .