Stocks fluctuated throughout much of the trading session on Friday but managed to end the day on the upside due to some late-day buying interest. The gains on the day partly offset the losses posted in the four previous sessions.