Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Help with code Last Bold Cannot get to work Help

$
0
0

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


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>