Buy these stocks with earnings momentum as market trades at all-time high