The three major indexes posted a third straight day of wins.