Stocks Advance After Week of Tech Earnings, Fed, and Margin Calls