Stocks edge higher after two weeks of gains