Stocks open higher, extend gains for 4th day