SHANGHAI—China had one of the best-performing stock markets in the world in 2015. Yet it was a dismal year for Chinese markets. Chinese stocks suffered an unprecedented summer crash that wiped out 43%, or $5 trillion, of their value at one point.