Hi,

Wondering if anyone with options experience can help me out here. My goal is to open an iron condor every day on the contract expiring that day. I want to set a stop loss of 300% on the credit received (i.e. if I receive $100, I want to set stop loss at -$300 so my net loss is -$200 if the stop is hit).

Because I am selling options, I feel as though the self.Portfolio.TotalUnrealizedProfit figure is not reflecting correctly? Can someone please confirm if my code is correct for the logic I'm trying to capture above?

Many thanks in advanced.