The S&P/NZX 50 closed at 12,770.33, up 188.95 points and bang on 1.5%.