Stocks tick up to end bitter week, dollar jumps