Capt Pit Bull is spot on. One other point is that since TCAS determines the closest intercept by the extrapolating from current range and rate of closure, if you are reasonably high above the traffic that is not reporting altitude you will sometimes see it be alerted as "traffic" and then the alert clears before you actually catch up to the traffic, because as the slant range moves to more vertical than horizontal the rate of closure reduces towards zero.