Highlights• The optimal reinsurance problem from the point of view of both parties.• The absolute value of the difference between the insurer's and the reinsurer's profits.• Model simulation with stop-loss and excess-of-loss reinsurance arrangements.