The Sensex finally ended with a gain of 2 percent (517 points) at 26,231. The NSE Nifty opened with a positive gap of 130 points at 7,922, and touched a high of 7,964 towards the end of the day. The Nifty eventually settled 2 percent higher (157 points) at 7,949.