Wall Street has seen solid gains in just over 26 months of President Trump in the White House.

When Trump assumed office, the Dow Jones Industrial Average closed at 19,827.25. On March 22, the Dow closed at 25,502.32, for a 28.6 percent increase.

The S&P 500 closed at 2,271.31 on Jan. 21, 2017, and closed at 2,800.71 on March 22, for a gain of 23.3 percent. The Nasdaq Composite went from 5,555.33 to 7,642.67, for a gain of 37.57 percent.

While the gains appear to be encouraging for Trump, he lags far behind when compared to former President Barack Obama. When Obama took office amid a financial crisis, the Dow was at 7,949, the S&P 500 was at 805.22 and the Nasdaq Composite was at 1,440.86.

By March 22, 2011, the Dow gained 51.2 percent, while the S&P gained 60.7 percent and the Nasdaq Composite jumped 86.3 percent.

Over Obama's eight-year team, the Dow gained 148.2 percent, the S&P gained 181.12 percent and the Nasdaq Composite soared 284.5 percent.

Not helping matters for Trump are some worries that all three indexes could be impacted by possible slower global growth.

"The market is polarized: Half thinks we are in a bull-market recovery and the other half thinks we are in a bear-market rally," Eoin Murray, head of investment at asset manager Hermes, told the Wall Street Journal on Friday.

Traders work on the floor of the New York Stock Exchange (NYSE) on March 22, 2019 in New York City. As investors show growing concern about a slowing global economy, the Dow Jones Industrial average fell over 450 points on Friday. Spencer Platt/Getty Images