The SPDR S&P Retail ETF (NYSEArca: XRT) is still saddled with a year-to-date loss and the largest retail ETF has been trailing the broader market and rival ETFs focusing on online shopping for over year, but some technical analysts believe retail stocks are ready to rally.

XRT could be reflecting that sentiment as the ETF is up more than 4% over the past week. On the other hand, retail sales data has recently been rough, particularly for brick-and-mortar retailers. Department stores, furniture stores, health stores, personal care stores, and gasoline stores were all down. However, internet retailers and restaurants were up. The Commerce Department said retail sales slipped 0.1 percent last month instead of falling 0.3 percent as previously expected.

“After a couple years of underperformance as shown by that falling line, we’re starting to see that trend stabilize and turn sideways,” said Ari Wald, head of technical analysis at Oppenheimer, in an interview with CNBC regarding XRT. “It’s looked poorly in recent years so we’ve had a very easy comp to base that off of.”

Related: Can Amazon Keep Driving Up Consumer ETFs?

XRT faces competition from ETFs that are more levered to the boom in e-commerce. The trend away from traditional department stores and apparel retailers to online shopping destinations should benefit the Amplify Online Retail ETF (NasdaqGM: IBUY), which is comprised of global companies that generate at least 70% of revenue from online or virtual sales.

Analyzing XRT Technicals

“The S&P Retail XRT ETF’s 200-day moving average relative to the S&P 500 had been on a downward trend since October 2015 before it began to flatten out and twist higher this year. On an absolute basis, the ETF spiked above its 200-day moving average in November and has held above that level through this year,” according to CNBC.

Related: Emerging Markets Love the Internet & Ecommerce

XRT features exposure to the following corners of the retail industry: Apparel Retail, Automotive Retail, Computer & Electronic Retail, Department Stores, Drug Retail, Food Retailers, General Merchandise Stores, Hypermarkets & Super Centers, Internet & Direct Marketing Retail, and Specialty Stores, according to State Street.

“Earnings on the XRT ETF should post healthy growth this year, according to analysts surveyed by FactSet. Analysts expect an average 23 percent rise in profit in fiscal 2018, though that should slow to 12 percent growth in 2019 and 11 percent in 2020,” reports CNBC.

For more information on the consumer sector, visit our consumer discretionary category.