Gold futures trade nearly flat for the quarter