An effigy of President Trump is carried in front of the New York Stock Exchange during a protest against new tax legislation Tuesday. (Lane/Epa-Efe/Rex/Shutterstock)

During the first presidential debate in September 2016, then-candidate Donald Trump argued that the booming performance of the stock market under the Obama administration should not be trusted.

“Believe me: We’re in a bubble right now. And the only thing that looks good is the stock market — but if you raise interest rates even a little bit, that’s going to come crashing down,” Trump said. “We are in a big, fat, ugly bubble. And we better be awfully careful.”

More than a year later, President Trump has turned similar record stock market bench marks into his favorite measure of his personal success in office. The Dow Jones industrial average is near the top of his personal list of accomplishments — and has been since the early days of his presidency, although the citations have become more frequent in recent months.

“DOW RISES 5000 POINTS ON THE YEAR FOR THE FIRST TIME EVER — MAKE AMERICA GREAT AGAIN!” the president tweeted at 6:04 a.m. Tuesday, marking the 58th time he has mentioned the stock market on Twitter since taking office. By comparison, he has tweeted 24 times about his proposed border wall and 20 times about standing for the national anthem.

The embrace of a single number to burnish his credentials fits a long-held pattern for Trump, who has never shown much concern about overstating his accomplishments. In the spring, Trump started championing the Labor Department’s numbers on the jobless rate, just months after he attacked them as phony under President Barack Obama during the campaign.

President Trump walks to board Marine One from the Oval Office across the South Lawn at the White House on Friday. (Jabin Botsford/The Washington Post)

"They may have been phony in the past, but it's very real now," then-White House press secretary Sean Spicer quoted the president as saying.

In recent weeks, the president has taken full credit for market performance, even though the recent rate of increase largely matches the bullish run under Obama, which began after the market hit bottom in 2009. White House officials and Trump allies credit the rise with Trump getting rid of some regulations on businesses, questioning trade policies, pushing for tax cuts for corporations and simply having a businessman as president.

Late last month, the president tweeted about “another great day for the Stock Market” and added, “I guess somebody likes me (my policies)!” Earlier that month, he tweeted: “Stock market hit yet another record high yesterday. There is great confidence in the moves that my Administration is making.”

But Democrats and even some Republicans see danger for Trump in his new favorite message. The rise in the market is not felt in the family budgets of many struggling voters. And of course if the market were to take a dip, it is unlikely that Trump would take responsibility for that.

“I think it’s a pretty risky strategy,” said Republican economist Doug Holtz-Eakin, a former economist to President George W. Bush.

Some of the president’s defenders say his strategy has helped to undercut the Democratic talking point that the corporate tax cut benefits only the rich.

Traders work on the floor of the New York Stock Exchange on Tuesday. (Spencer Platt/Getty Images)

“It’s very important and brilliant to focus on the stock market,” said Grover Norquist, the president of Americans for Tax Reform, who helped push the Republican tax bill. “You are looking at 54 million people — this is not the 1 percent — they have been able to look at their 401(k)s grow over the last year.”

Convincing even a portion of the middle class to think like investors will, Norquist argued, ultimately increase the reach of the Republican Party over time. “Democrats’ answer for everything is more cops, more government workers,” he said. “The Republican answer for everything is more 401(k)s.”

Presidents traditionally have avoided commenting directly on stock values. When the stock market reopened after the 9/11 attacks, White House staff told Bush not to make public comments, Holtz-Eakin remembers, because they did not want him to be blamed for market reactions. Obama mostly resisted the temptation to take credit for the stock market rebound following his inauguration.

Part of the reason is that stock gains typically are not felt by many voters who remain frustrated by their economic situation. In recent years, Americans have become much more wary of the markets following two major declines, and the share of American families who directly own stocks fell from 23 percent to 14 percent between 2001 and 2016, according to the Federal Reserve.

Rates of ownership were much lower among poorer Americans, standing at less than 10 percent direct ownership for the bottom half of families as measured by income.

Many more families own stocks as part of mutual funds or retirement programs, such as a 401(k) or IRA. An April poll by Gallup said 54 percent of Americans said they had some form of stock investment either in their own name or jointly with a spouse.

A separate analysis of 2012 census data by the Government Accountability Office found that 63 percent of private-sector workers participated in a workplace retirement savings account of some sort.

Democrats see the president’s stock ticker obsession as a political opportunity to recapture some of the struggling blue-collar white voters Trump won in 2016.

“They don’t have a 401(k). They don’t have a pension,” Rep. Cheri Bustos (D-Ill.) said of the struggling families in her district, which voted narrowly for Trump. “President Trump could not be more wrong on what he is saying because that does not mean anything to people who work two or three jobs just to make enough money to buy a present for their kids.”

The markets bottomed out shortly after Obama took office in the wake of the 2008 financial crisis, but he resisted taking credit for their subsequent rise, preferring to focus on coinciding declines in the unemployment rate. Between Feb. 1, 2009, and Dec. 1, 2009, the Standard & Poor’s 500-stock index rose by 38 percent as panic subsided, compared with an increase of 14 percent during the corresponding period in Trump’s first term.

Now Trump may be walking into a trap of his own making, said Joel Benenson, Obama’s top pollster. “His overheated trumpeting of economic data is just creating a gap between him and working-class Americans,” said Benenson, who is working on strategy to retake Congress from Republicans in 2018. “They are creating a lot of disconnects for themselves that are going to be very easy for Democrats to exploit.”

Even Republican advisers to Trump, such as Heritage Foundation economist Stephen Moore, concede that the stock market is not the most important measure of economic prosperity for most voters. “What the Trump voters care about most is wages, there is no doubt about that,” Moore said.

But they argue that there will be a “wealth effect,” with companies hiring more workers as their values rise, and wealthier people spending more money as their portfolios rise.

“A bad stock market is horrible for the middle class,” Moore said.

Tory Newmyer contributed to this report.