2022 was a dismal year for financial markets. Major United States stock indices moved lower, trimming or eliminating the previous year’s gains.