It's a close race this year between Wall Street's best-performing sectors: technology and consumer discretionary. Craig Johnson, chief market technician at Piper Jaffray, says one sector takes the lead.

"The winning horse at this point in time is still the technology sector and we would continue to be betting on the technology sector," Johnson told CNBC's "Trading Nation" on Friday.

The consumer discretionary sector looks in good shape, but the charts suggest tech is the better bet, said Johnson.

"Looking at the absolute price action of the XLK, we just broke out to new highs," said Johnson. "It looks like we've got a measured objective that could take us up toward $80 so that was where we'd be putting our money to work and we remain overweight this sector at this point."

The XLK technology ETF is still an 11 percent rally from the $80 level. It reached an all-time high of $72.38 on Wednesday.

The information technology sector has added almost 14 percent so far this year, more than triple the gain of the . The consumer discretionary sector, which houses big-time climbers Amazon and Netflix, has risen nearly 12 percent so far this year.

Technology's big gains in recent years have another analyst feeling more bearish.

"You're talking about over the last five years almost 30 percent outperformance in big tech versus discretionary which has been a strong leader in the market so you're talking about a leader in the market being outperformed by 30 percent," Larry McDonald, editor of the Bear Traps Report, said on Friday's "Trading Nation."

The XLK tech ETF has rallied nearly 130 percent since mid-2013, while the XLY consumer discretionary ETF has increased 94 percent in the same time period.

"You want to run from tech here. You don't want to walk away," McDonald added.

Both the tech and consumer discretionary sectors were slightly higher Monday.