Sharemarkets have been volatile this week as the impact of Donald Trump's on-again-off-again tariff war was felt.