Stocks flip between small gains and losses Friday, struggling for direction after benchmark indexes closed at record highs on Thursday, with investors focused on talks in Washington over another round of economic relief.