Sideways markets expose investor discipline more than bull runs ever could.