Sensex gained 0.65% by rising 509 points to settle at 78,648 while the Nifty is trading higher by 0.62% gaining 145 points to trade at 23,789.