US stocks trade mixed but notch weekly gains as interest rates fall ahead of Q3 earnings season