On a choppy day for the market, the ASX 200 traded relatively flat, thanks to a late market surge.