Stocks End Volatile Week Higher