San Francisco Frontiers - Stock markets gain at end of turbulent week