Stocks closed higher on Wednesday as investors pored over the latest batch of company earnings. All 10 industry sectors of the Standard and Poor's 500 index rose, led by technology companies. Visa jumped 4 percent after China announced it would open its payment processing market to foreign companies.