As the deadline for D.C.'s debt ceiling approaches, one trader says that the debate on whether to raise the legal debt limit could create some attractive buying opportunities for investors.
Larry McDonald, head of U.S. strategy at Societe Generale, said that while a deal will surely be reached before a default, markets could still react negatively.
"You must remember from a trading perspective how this will go down. There will be a deal in the end, but the perception of a real problem will grow," McDonald said Thursday on CNBC's "Trading Nation."
The market hasn't seemed too concerned with the debt ceiling in recent days. On Thursday, the Dow Jones industrial average and S&P 500 closed up about 1 percent, and both traded within about 5 percent of all-time intraday highs.
But McDonald referred to a similar situation in 2013, in which stocks sold off leading up to the debt ceiling. Market volatility also spiked during that time, he said.
"It creates a buying opportunity for stocks, absolutely," he said.
According to Treasury Secretary Jack Lew, the U.S. debt ceiling will be exhausted by Nov. 3, earlier than previous estimates of around mid-November.
If an agreement isn't reached on raising the debt ceiling, the government, unable to pay its bills, could shutdown and default on its debt.
Read MoreDebt-ceiling debate could put money funds into uncharted waters
Andrew Burkly, head of portfolio strategy at Oppenheimer, said the bigger issue may not come until later in 2015, if the government does shut down.
"There's not too much time before this needs to be resolved," Burkly said Thursday. "I think its a short-term issue, but the market is used to getting to the verge and getting over that. And I think that's going to happen once again here."