Nifty Pharma among others has gained 0.8 per cent in trade, logging an intra-day high at 20,550.6