The Nasdaq composite gained 4.78 to 1,955.80 , having edged up 0.1 percent last week .