President Donald Trump is cheering after the main U.S. stock indexes achieved their longest record-setting run in a quarter century.

He isn’t getting his factoids quite right, however.

On Wednesday, the S&P 500 SPX, -0.84% , the Dow Jones Industrial Average DJIA, -0.46% and the Nasdaq Composite COMP, -1.26% all closed at record highs for a fifth session in a row, something the three gauges haven’t done in 25 years.

That led Trump to tweet Thursday about the equity market’s “longest winning streak in decades”:

But it actually isn’t the longest winning streak in decades. Rather, it’s the best record-setting stretch in a quarter century. In other words, the three main benchmarks have all notched all-time closing highs for five straight sessions for the first time since January 1992.

In terms of winning streaks, the S&P has risen for seven consecutive trading days for its longest stretch of up days since September 2013, when it also rose for seven straight sessions. That’s according to Dow Jones data.

The Dow has gained for five straight days, its best stretch since December, and the Nasdaq has been up for seven sessions in a row, its best streak since its seven-session advance that ended Jan. 11.

Analysts have pinned the market’s gains this week and last week in part on President Trump promising “massive” and “phenomenal” tax reforms.

“Great level of confidence and optimism — even before tax plan rollout!” Trump said in Thursday’s tweet.

Other analysts have questioned how much credit should go to the president for the market’s gains. The “Trump rally” may stem in large part from encouraging earnings news and the end of pre-election uncertainty, suggested Jeff Miller, president of NewArc Investments, in a post at his Dash of Insight blog.