The S&P 500 and Nasdaq Composite inched forward just 0.7 and 4.9 points respectively to new highs on Friday.
The US stock indices were nearly unchanged throughout the trading day and the S&P 500 ended flat at 2,415.80 while the Dow Jones Industrial Average was also nearly unchanged at 21,080.11. The Nasdaq Composite eked out a modest 0.1 per cent gain to end the day at 6,210.20.
For the S&P 500, the record close was the 20th closing high of this year and the 28th record high since the US presidential election. In all of 2016, by comparison, the S&P 500 notched 18 record closings, according to data from S&P Dow Jones indices.
The price of oil had its steepest fall on Thursday in three weeks after Opec said it would extend output cuts as investors appeared disappointed by the agreement. After paring back some losses on Friday, however, Brent crude settled 2.7 per lower for the week. Stocks within the S&P 500 energy index lost 2.2 per cent over the same period.
Elsewhere, the US dollar index measuring the buck against a basket of its peers was also 0.28 per cent higher at 97.417.