All sectoral indices ended in the red. The BSE midcap index lost 3.4 percent and the smallcap index 4 percent