GREEN — Improved revenue and reduced costs helped Diebold Nixdorf stem the tide on its losses during the second quarter.

The improved numbers sparked a buying spree by investors.

The company reported a $50.3 million loss, or 66 cents per share, for the quarter that ended June 30, an improvement over the 2018 second quarter loss of $133.4 million, $1.76 per share. Overall sales rose to $1.15 billion for the quarter, a 4% gain compared with $1.11 million last year.

Through the first half of the year, Diebold Nixdorf has a loss of $183 million, or $2.39 per share, compared with $206.6 million, or $2.72 per share, during the first half of 2018. Revenue was $2.18 billion, up slightly from $2.17 billion last year.

Because of the improved numbers, Diebold Nixdorf adjusted its year-end projection to the higher end, with revenue expected to hit $4.5 billion, while earnings before interest, taxes, depreciation and amortization are now estimated at between $400 million and $420 million.

Gerrard Schmid, president and chief executive officer, said the results "were made possible by the strong commitment and cohesion of our global teams." The company's DN Now initiative, designed to cut costs by $400 million by 2021, has helped and is moving forward on schedule, he said.

Investors had a positive reaction to the results, which were released before the stock market opened. Diebold Nixdorf shares opened at $11.90 — compared with Wednesday's closing price of $10.29 — and traded over $13 per share early in the day before settling in the $12.50-per-share range.

By the end of the day, more than 5.32 million shares had traded compared with an average of 1.27 million. The stock closed at $13.17, gaining $2.88 on the day.

In the earnings announcement and in conversations with stock analysts, Schmid touted the company's new line of automatic teller machines called the DN Series. The product line "further extends our position as a market leader," he told analysts.

The products are generating excitement with customers, Schmid said. The line is being tested by 18 financial institutions in 13 counties, he said.

The company saw its biggest revenue gain in the Americas banking business segment. Revenue rose 13.3% to $419.9 million from $370.6 million last year. The company cited large sales to Brazilian banks, a deal to upgrade machines for a Mexican bank, and upgrades by U.S. financial institutions as reasons for improved revenue.