I'm new to QC, still figuring the object structures.  I've seen an example of how to take profit on stocks (unrealised/cost), however how can we code take profit on a combo transactions such as an iron condor?  Moreover if we have multiple positions, how can we distinguish them?  

Thanks.