AoN | R Documentation |
The function computes the price of an Asset or Nothing Option
AoN(s, K, r, b, v, t, type)
s |
price of the underlying |
K |
strike price |
r |
risk free interest rate |
b |
cost of carrying rate |
v |
volatility |
t |
maturity |
type |
call "C" or put "P" |
Asset-or-Nothing Options is a type of digital option whose payout is fixed after the underlying asset exceeds the predetermined threshold or striK e price. The payout depends only on whether or not the underlying asset closes above the striK e price-in the money (ITM)-at the expiration date. It does not matter how deep ITM as the payout is fixed. We price the Asset-or-Nothing Options with the Cox and Rubinstein (1985) formula.
Price of an Asset or Nothing Option given s, K, r, b, v, t and type.
Colzani Luca, Magni Marta, Mancassola Gaia, Kakkanattu Jenson
Espen Gaarder Haug(2007):The Complete Guide to Option Pricing Formulas
AoN(70,65,0.07,0.02,0.27,0.5,"P") ## The function is currently defined as function (s, K, r, b, v, t, type) { d <- (log(s/K) + (b + v^(2)/2) * t)/(v * sqrt(t)) if (type == "C") { price <- s * exp((b - r) * t) * pnorm(d) } if (type == "P") { price <- s * exp((b - r) * t) * pnorm(-d) } return(round(price, 2)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.