The markets closed higher amid buying in capital goods, auto, pharma and FMCG stocks. The Sensex hit a new high of 10195.51 in intraday trade.