New York equities markets were higher in early afternoon trade even though comments in a speech by Federal Reserve chairman Ben Bernanke did not mention interest rates.
Analysts and investors had been hoping that Mr. Bernanke would say something that would indicate what the Fed is planning on doing about interest rates when it meets next.
Confidence was also boosted by new Commerce Department data showing that the US trade deficit narrowed slightly, from $59.4 billion in June to $59.2 billion in July in the face of conventional wisdom that said it would widen.
The Dow Jones Industrial Average added 0.89 percent to 13,244.91, while the Nasdaq Composite was up 0.86 percent to 2,581.05 and the S&P 500 gained 0.72 percent to 1,462.17.
The Dow was helped by good sales news from fast food chain McDonalds (NYSE: MCD) when it said that global sales at restaurants open at least a year were up 8.1 percent in August.
McDonalds shares added $2.25 to $52.40.
The Nasdaq was helped by a big gain from biopharmaceutical group ImClone Systems (NAS: IMCL), which added $7.99 to $45.92 on the news that late-stage studies of the drug Erbitux has improved survival in lung-cancer patients.
Bristol-Myers Squibb (NYSE: BMY), also involved in the development of the drug, added 31 cents to $28.31.
Most railroads were higher after broker comments that a recent judicial decision on coal rates have taken some regulatory and legislative pressures off the sector.
The decision found in favor of Burlington Northern Santa Fe (NYSE: BNI) in two cases where the railroad was accused of charging too much to transport coal.
Burlington Northern added 70 cents to $80.92.
Kansas City Northern (NYSE: KSU) was up 75 cents to $31.16 and Norfolk Southern (NYSE: NSC) gained 91 cents to $50.01, while Union Pacific (NYSE: UNP) was $1.71 higher to $107.58.
However, CSX (NYSE: CSX) was 48 cents lower to $38.81.