Gold pared losses as the dollar pushed lower after US President Donald Trump signaled the US war on Iran could be ending soon.