The Indian markets ended flat, with the Sensex closing at 19409.69 points and the Nifty at 5908.90 points. HDFC gained 3.15% while sectors like real estate and healthcare gained over 0.8% each. TCS fell by 2.5% and was the top loser on the Sensex. The markets traded in a narrow range and recovered slightly to close flat.