Stocks swung sharply, with gains of up to 5 per cent before slipping into losses