Legendary market analyst and commentator Marc Chaikin said the stock market is bent but not broken.

Still, the S&P 500 has been trading in a narrow range and has failed to revisit its Jan. 26 high of 2,873.

"What gets us out [of the narrow range] is to break this pattern of negative closes," he said. "People are selling into the close [of the trading session]."

Chaikin said investors are afraid of overnight tweets from President Trump or negative trade news out of China.

Chaikin is the founder of Chaikin Analytics

Want exclusive investing insight from Jim Cramer? Get 24/7 access to Jim's charitable trust portfolio with a free trial to Action Alerts PLUS!

Watch all of Jim Cramer's NYSE live shows right here: