When the entire market is on a high, here’s how to pick stocks