The U.S.-listed shares of BlackBerry Ltd. /zigman2/quotes/202784246/composite BB -0.80% /zigman2/quotes/206834662/delayed CA:BB -1.09% surged 4.4% toward a near three-year high in afternoon trading Wednesday, to extend the record rally over the past several days. The Canada-based cyber-security software company's stock has been on a tear over the past week, after The Global and Mail reported that the company, which made BlackBerry cellphones in a past life, had sold 90 patents to China-based technology giant Huawei, and after the company reportedly settled a patent infringement lawsuit against Facebook Inc. /zigman2/quotes/205064656/composite FB -0.53% . The stock, on track to close at the highest price since March 2018, has soared 73.3% amid a four-day win streak. That's would be the best four-day performance for the stock since it started trading in February 1999, according to a MarketWatch analysis of FactSet data; the current record four-day rally is 65.7%, set over the four sessions ended June 2, 2000. The stock has now rocketed 153.7% over the past three months, while ETFMG Prime Cyber Security ETF /zigman2/quotes/207892345/composite HACK -0.66% has climbed 26.0% and the S&P 500 /zigman2/quotes/210599714/realtime SPX +0.36% has gained 12.0%.