Bearish conditions on Wednesday turned bullish by Friday's close, with the S&P 500 and Nasdaq back above their 50-day lines.