South African stocks have been supported during the quarter by a rally in gold and platinum companies.