Final hour of selling shuts door on 3 years of double-digit gains