The Canadian dollar has reversed the gains it made against the U.S. dollar in the first half of the year.…