Stock markets in Hong Kong and China have posted strong gains in recent weeks amid the bloodbath on Wall Street.