India's two major stock indices, Bombay Stock Exchange's Sensex and the Nifty, ended trading on Wednesday with good gains based on aggressive buying by foreign funds, reported dpa. The 30-stock Sensex, which scaled the 18,000-point mark on Tuesday, closed with a gain of 2 per cent, up 378 points at 18,658. The BSE gained 788 points, or 4.51 per cent, when trading ended on Tuesday, the second-fastest 1,000-point rally in nine trading sessions. The more comprehensive 50-stock S&P CNX Nifty on the National Stock Exchange wrapped up trading at 5,441, up 114 points, or 2.1 per cent, from the previous days' close.