Stocks close higher amid strong earnings and trade optimism