APO | R Documentation |
The fucntion computes the price of an American Perpetual Option
APO(s, K, r, b, v, type)
s |
underlying value |
K |
strike price |
r |
risk free rate |
b |
cost of carry rate |
v |
volatility |
type |
call "C" or put "P" |
A perpetual option is a non-standard, or exotic, financial option that has no fixed maturity and no exercise limitation. While the life of a standard option can range from a few days to several years, a perpetual option (XPO) can be exercised at any time and without any expiration.
Price of an American Perpetual Option given s, K, r, b, v, type
Colzani Luca, Magni Marta, Mancassola Gaia, Kakkanattu Jenson
Espen Gaarder Haug(2007):The Complete Guide to Option Pricing Formulas
APO(90,100,0.1,0.02,0.25,"C") ## The function is currently defined as function (s, K, r, b, v, type) { y1 <- 0.5 - (b/v^2) + sqrt(((b/v^2) - 0.5)^2 + (2 * r/v^2)) y2 <- 0.5 - (b/v^2) - sqrt(((b/v^2) - 0.5)^2 + (2 * r/v^2)) if (type == "C") { price <- (K/(y1 - 1)) * (((y1 - 1)/y1) * s/K)^y1 } if (type == "P") { price <- (K/(1 - y2)) * (((y2 - 1)/y2) * s/K)^y2 } return(round(price, 2)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.