Markets closed in the green with the Sensex up 152 points at 19,654 and the Nifty gained 47 points to close at 5,945.