public PairCondor(PairCondor source) { this.Dummy = source.Dummy; this.SectorEnum = source.SectorEnum; this.Strategy = source.Strategy; if (source.BullPutSpread != null) { this.BullPutSpread = new BullPutSpread(source.BullPutSpread); } if (source.BearCallSpread != null) { this.BearCallSpread = new BearCallSpread(source.BearCallSpread); } }
public BearCallSpread(BearCallSpread source) { this.Quantity = source.Quantity; this.SellStrike = source.SellStrike; this.BuyStrike = source.BuyStrike; if (source.SellCall != null) { this.SellCall = new Call(source.SellCall); } if (source.BuyCall != null) { this.BuyCall = new Call(source.BuyCall); } this.SecurityIdentifier = source.SecurityIdentifier; }