Oil retreat puts brakes on ag rally. But wheat extends gains