Caterpillar Inc. raised is earnings forecast in a sign that industries from mining to energy are gaining momentum amid a stronger global economy — assuming no trade wars.