HDFC Bank and Reliance Industries have emerged as the biggest gainers in line with an overall optimistic trend in equities.