The Sensex opened with a huge negative gap of 226 points at 17,541 on bearish cues from the US markets. The index soon slipped to a low of 17,445 - down 322 points from the previous close.Fresh buying at lower levels saw the index recoup losses and rebound into positive zone as the day progressed. The index crossed the 18,000-mark and touched a high of 18,143 - up 698 points from the day's low.The Sensex finally ended (provisional) with a gain of 335 points at 18,101.The NSE Nifty gained 86 points at 5,288.