North American stock indexes capped off a strong week by closing slightly lower despite gold and crude oil prices climbing on geopolitical anxiety over a potential military confrontation between the U.S. and Iran.

The S&P/TSX composite index was down 49.40 points at 16,525.43.

In New York, the Dow Jones industrial average was down 34.04 points at 26,719.13 after setting an intraday high. The S&P 500 index was down 3.72 points at 2,950.46 after also setting a new record, while the Nasdaq composite was down 19.63 points at 8,031.71.

The Canadian dollar traded for an average of US75.69¢ compared with an average of US75.81¢ on Thursday.

The August crude contract was up US36¢ at US$57.43 per barrel and the August natural gas contract was up US0.3¢ at US$2.17 per mmBTU.

The August gold contract was up US$3.20 at US$1,400.10 an ounce and the July copper contract was down US0.75¢ at US$2.70 a pound.