President Donald Trump warned Wednesday that the stock market would likely suffer if Democrats took control of Congress after the midterm elections.

“They’re waiting for the results of the midterms, and if the midterms for some reason don’t do well for Republicans, I think you’ll all lose a lot of money,” Trump said.

The stock market jumped Tuesday and Wednesday, despite heavy losses in October.

The president commented on the strength of the economy during a White House event with his daughter Ivanka Trump and economic advisor Larry Kudlow.

“Nobody wants to talk about the economy anymore, so let’s talk about the economy,” Kudlow said, as he opened the conversation with Trump.

Trump appeared excited about the future of the American economy and despite his warning, said he had a “good feeling” about the results of the upcoming election. He also praised capitalism as an economic model for the world.

“I’m a believer in this country, I’m a believer in this system, this is the greatest system on earth,” he said.

Trump said that China’s economy was slowing while the United States was getting better and stronger.

“We have an economy now that’s the hottest economy now in the world,” Trump said.

He promised to continue renegotiating trade deals, enforcing the borders, and moving to a skills-based immigration system.

“We have to take care of America first, and the fact is we have to take care of our own country,” he said. “Because we were taking care of other countries and we were letting our country go to hell.”