oil, gold trim losses after consumer confidence