Nvidia  (NVDA) has long been a favorite of TheStreet's founder and Action Alerts Plus Portfolio Manager Jim Cramer, but he told a packed audience Saturday at his Boot Camp for Investors in New York why his charitable trust recently sold out of the stock.

He said the trust took a win and exited the name because "I think Nvidia is going to miss the quarter.

Still Cramer noted that Nvidia is still in his trust's "bullpen" of possible future buys, and that he expects to buy it back at the right price.

Jeff Marks, lead analyst for Cramer's trust and his Action Alerts Plus club for investors, said he and Cramer still like NVDA for the longer term because "there are so many trends -- autonomous cars, gaming. ... We had a huge gain [when we sold]."

But Cramer added: "You can't be greedy in this market."

Click here for live updates from Jim's Boot Camp for Investors.

How to Invest Like Jim

If you missed joining Jim in New York for Saturday's boot camp, you still have time to sign up for his monthly private call for members of his Action Alerts Plus club for investors this Thursday. Click here for details.

More from Video

FANG and Cloud Kings: How They can Change Your Financial Future

FANG and Cloud Kings: How They can Change Your Financial Future

Is Now the Time to Be in Tech? Experts Weigh in

Is Now the Time to Be in Tech? Experts Weigh in

This Market is Comparable to Getting Into a 'Fist Fight'

This Market is Comparable to Getting Into a 'Fist Fight'

Data Regulation on FAANG's Could Just Be Underway: Cramer's Investing Teach-in

Data Regulation on FAANG's Could Just Be Underway: Cramer's Investing Teach-in

Your Need to Know - Forward Look

Your Need to Know - Forward Look