Optimism flows through oil and gold markets