The S&P/ASX 200 closed 39.1 points higher, up 0.4%.