Thursday's volatile session led to a positive close of 1.5 percent for the major stock indices. Shares of technology and pharmaceutical companies continued to be in demand, while shares of energy and financial companies were under selling pressure.