Major gainers that helped both the key indices to scale new highs were Sun Pharma, Yes Bank, Dr Reddy's, l&T, Infosys, HDFC ltd, Power Grid, ONGC, Coal India, ICICI Bank, Indusind Bank, Hero MotoCorp, Tata Steel and Tata Motors, gaining up to 3.72 per cent.