Hopes of a thaw in trade tensions, value buying drive gains