| Financial Toolbox | Search  Help Desk |
| opprofit | Examples See Also |
Syntax
p = opprofit(so, x, cost, flag, type)
Arguments
soxcostflag0 = long, 1 = short.type0 = call option, 1 = put option.Description
p = opprofit(so, x, cost, flag, type)
returns the profit of an option.
Example
Buying (going long on) a call option with a strike price of $90 on an underlying asset with a current price of $100 for a cost of $4:p = opprofit(100, 90, 4, 0, 0)returns
p =
6.00
a profit of $6 if the option is exercised under these conditions.
See Also
binprice, blsprice