(Bloomberg) -- While investors fled U.S. equities last week, they put record money into a market they have shunned for most of the past four years: Spain.

The iShares MSCI Spain Capped ETF attracted almost $238 million in the period ended April 11, the most for any country, according to data compiled by Bloomberg going back to 2002. Traders have poured money into the exchange-traded fund every week in 2014. The $1.9-billion ETF tracking companies from Banco Santander SA to Telefonica SA has gained 5.3% this year, compared with declines in the Standard & Poor’s 500 Index and the Stoxx Europe 600 Index.

Subscribe Now

Access to premium content including in-depth coverage of mutual funds, hedge funds, 401(K)s, 529 plans, and more.

3-Week Free Trial

Insight and analysis into the management, marketing, operations and technology of the asset management industry.