Gold closes at nearly 7-year high