Markets closes higher for the 3rd straight day