The Nikkei stock index finished slightly lower Friday but at its highest close in 20 years as the final trading day of the year saw investors move to lock in gains.

The 225-issue Nikkei Stock Average lost 30.77 points, or 0.16 percent, from Thursday to close at 19,114.37. The index broke its previous year-end close for the fifth year in a row and ended up 0.4 percent for 2016.

The broader Topix index of all first section issues on the Tokyo Stock Exchange finished 0.22 points, or 0.01 percent, higher at 1,518.61.