Stocks are closing higher as energy companies rally with the price of oil, the AP reports. Technology companies also rose. The meager gains Wednesday were enough to mark new all-time highs for the Standard & Poor's 500 index and the Nasdaq composite. The Dow Jones industrial average was dragged down by drops in Disney and Boeing. Among gaining stocks, Chesapeake Energy jumped 6.5%. Chipmaker Nvidia soared 18% after reporting earnings that were higher than analysts were expecting. The S&P 500 index rose 2 points, or 0.1%, to 2,399, a fraction of a point above its most recent record. The Dow lost 32 points, or 0.2%, to 20,943. The Nasdaq composite rose 8 points, or 0.1%, to 6,129, its fourth record close in a row. (More stock market stories.)