View source: R/BS_Implied_Volatility.R
BS_Implied_Volatility | R Documentation |
For the definition of implied volatility see Implied_Volatility. BS_Implied_Volatility offers a very fast implementation for European put- and call options applying Halley's method (see
en.wikipedia.org/wiki/Halley%27s_method).
BS_Implied_Volatility(
option_price,
initial_price = 100,
exercise_price = 100,
r = 0,
time_to_maturity = 1,
dividend_yield = 0,
payoff = "call",
start_volatility = 0.3,
precision = 0.000000001
)
option_price |
|
initial_price |
|
exercise_price |
|
r |
|
time_to_maturity |
|
dividend_yield |
|
payoff |
|
start_volatility |
|
precision |
|
Named vector containing the values of the Greeks specified in the
parameter greek
.
Implied_Volatility for American and Asian options, and for digital payoff functions
BS_Implied_Volatility(option_price = 27, initial_price = 100,
exercise_price = 100, r = 0.03, time_to_maturity = 5, dividend_yield = 0.015,
payoff = "call")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.