The major indexes rose toward record highs Thursday with Tesla regaining a key level. Apple stock flashed a buy signal late on earnings.