Stocks, dollar swing upward on hopeful retail data