Market gains for 2018 wiped out by plunging stocks