The 50-issue Nifty crossed the 9,900 level for the first time by gaining 21.60 points, or 0.21 per cent, to trade at an all-time high of 9,913.30, within striking distance of 10,000. It surpassed its previous intra-day high of 9,897.25 touched yesterday.