The Australian sharemarket advanced as Donald Trump raised hopes for an Iran deal, and BHP gained on reports of progress in its months-long iron ore tussle with China.