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

Economist Perspective: Why 2019 Will Be Different?

Economist Perspective: Why 2019 Will Be Different?

Open Enrollment Means Costly Changes for Some Medicare Advantage Beneficiaries

Open Enrollment Means Costly Changes for Some Medicare Advantage Beneficiaries

Inside Jim Cramer's November Members-Only Club Call

Inside Jim Cramer's November Members-Only Club Call

Amazon's New Headquarters Confirmed for New York City & Virginia

Amazon's New Headquarters Confirmed for New York City & Virginia

Why Jim Cramer Is Waiting Ahead of Nvidia's Earnings

Why Jim Cramer Is Waiting Ahead of Nvidia's Earnings