Shares extend gains on the rise of real estate, securities stocks