Javascript Assignment
Starting Price
Number Of Contracts
Option Bid Price
Commission
How many Options bought
Price Now
Loss/Gain %
Price you're going to sell at
Actual Option Cost
$4.95 if 5 or less contracts.
$4.95 + .50 * the number of
contracts
Starting Price + Commision/
Number of Contracts
Now Price
(Price Now - Starting price)/Starting Price
display in red if negative, green if positive,
grey if broke even
Total Cost
The starting price * 100 + Commision
Total Profit/Loss
Price now * 100 *num of
contracts
Now Price - Total Cost
Example
Starting Price
$
Number Of Contracts
0.45
Price Now
Commission
10 $
Loss/Gain %
0.2
Actual Option Cost
9.95 $
Now Price
-56% $
1.04 $
Total Profit/Loss
200.00 $
(247.75)
Total Cost
447.75