Stocks close mixed; grocery, Walmart says pharmacy sales rise; import prices fall in October; homebuilder confidence could pick up.