Net Profit: IIf([tradetype]="C",IIf([price]<=[lower strike],[option premium],IIf([price]>[higher strike],(([higher strike]-[lower strike])*([num opt]*-100)+[option premium]),(([price]-[lower strike])*([num opt]*-100)+[option premium]))),IIf([tradetype]="P",IIf([price]>=[higher strike],[option premium],IIf([price]<[lower strike],(([higher strike]-[lower strike])*([num opt]*-100)+[option premium]),(([price]-[higher strike])*([num opt]*100)+[option premium]))),IIf([tradetype]="W",[option premium],0))),IIf([tradetype]="CLS",[option premium],0)))
All the code works except the last IIf that I made BOLD