All three main U.S. stock indexes ended at all-time highs on Tuesday, as Federal Reserve policy makers began a two-day policy meeting in which they’re expected to finalize the details of their plan to begin slowly shrinking the central bank’s $4.5 trillion balance sheet.

The Dow Jones Industrial Average DJIA, -0.87% rose 39.45 points, or 0.2%, to close at 22,370.80, extending its win streak to eight sessions and notching its 41st record close of the year.

The S&P 500 index SPX, -1.11% rose 2.78 points, or 0.1%, to 2,506.65, closing at a record for the 36th time this year. Tuesday’s gain is its sixth in the past seven sessions.

The Nasdaq Composite Index COMP, -1.07% rose 6.68 points to 6,461.32, a gain of 0.1%. The tech-heavy index set a record for the 49th time in 2017 and is currently up 20% year-to-date.

Telecoms stocks were the biggest gainers of the day, up 2.3%. Financial were among the best performers, with the sector up about 0.8%.

“Markets are paying attention to what they should be paying attention and that is earnings growth,” said Karyn Cavanaugh, senior market strategist at Voya Financial.

Cavanaugh didn’t rule out pullbacks in the near future, but noted that investors should not worry about the Federal Reserve’s plan to reduce its balance sheet.

“Any reduction in the Fed balance sheet will be gradual and it is happening on the backdrop of improving economy in the U.S. and globally. But at the same time, we don’t know how the market will react because we have never had this situation before,” Cavanaugh said.

The Federal Open Market Committee is widely expected to say it will start reducing its $4.5 trillion portfolio of government securities when it releases its policy update on Wednesday. Rates are forecast to stay on hold, but traders will be looking hints if more hike are coming later in the year.

Read:Fed’s balance-sheet unwind will be moment of truth for financial markets

Stock market bull run may depend on Fed's next move

The dollar gave up some of its recent gains ahead of the Fed meeting, with the ICE Dollar Index DXY, -0.11% down 0.3% at 91.78 on Tuesday.

President Donald Trump gave his first address to the United Nations General Assembly, and at one point stated that the U.S. was “ready, willing and able” to act against North Korea militarily, and that the U.S. would “totally destroy” the country if necessary. Markets were little impacted by the speech.

Other economic news: Housing starts slipped 0.8% to an annual rate of 1.18 million in August from an upwardly revised 1.19 million in July. Permits to build new homes jumped 5.7% to a 1.3 million rate, matching the level in January and marking the second highest amount since 2007.

The import-price index jumped 0.6% last month to match the biggest increase since January, largely due to higher oil prices.

See:MarketWatch’s economic calendar

Stock movers: Shares of Best Buy Co Inc. BBY, -0.04% dropped 8% after its earnings outlook fell short of expectations.

AutoZone Inc. AZO, -1.53% fell 5% despite the auto parts retailer reporting earnings and revenue that beat forecasts. The auto parts retailer said its same-store sales grew at 1% instead of 1.6% increased forecast by analysts.

Shares of Valero Energy Corp. VLO, -0.59% rose 0.7% after the company and Plains All American Pipeline LP PAA, -5.42% said late Monday they will drop a deal for Valero to acquire two California distribution terminals after interference from the state’s attorney general.

Michael Kors Holdings Ltd. US:KORS shares jumped 3.4% after Oppenheimer analysts upgraded the stock to outperform from perform.

Other markets: Asian markets closed mixed, while European stocks SXXP, -1.05% ended with modest gains.

Oil prices US:CLV7 gave up gains to trade lower, and gold US:GCZ7 inched higher but most other metals declined.