The presidential candidate for the ruling Nationalist party, which has promoted economic ties with Beijing, is forecast to lose by a wide margin to the candidate from the main opposition party, which has traditionally advocated for Taiwanese independence.