The market recovery came despite a weak opening influenced by China’s stimulus concerns and continued foreign investor selling