Should you invest in bitcoin or the stock market's hottest sector: tech?

Bitcoin prices have been quite volatile over the past three months. The high on December 16 of 19,300 has since been obliterated to 11,000 - that's a decline of 43%.

Then again, bitcoin prices were at about 1,000 a year ago.

As for technology stocks in the S&P 500, they've had a steady climb higher over the past few months - up 12%. That momentum has even continued into 2018....with tech stocks rising over 6%.

This group includes stocks like Apple (AAPL - Get Report) , Facebook (FB - Get Report) and Alphabet (GOOGL - Get Report) . 

Tech stocks are pricey at 25X earnings, but the S&P 500 is trading at 23X earnings - the spread isn't that big.

Bottom line: stay diversified. You can invest in both bitcoin and tech stocks, but putting all your money in bitcoin could have a bad ending.

Watch TheStreet's investing interviews on Youtube

More From TheStreet: