Markets responded enthusiastically to signals from the US president that the end of the war is nigh, but they have been burnt before.