According to my knowledge/experience, the size/quantity of a child order attached to a parent order must have the same size/quantity of the parent order. Hence my suggestion to use two sets of parent and attached OCA child orders. By the way, the TWS API example in the link that you indicate should set the OCA attribute in the stop loss and profit taker orders to guarantee that if one order fills then the other is automatically canceled.
--