AmericanOptionImpliedVolatility
function solves for the
(unobservable) implied volatility, given an option price as well as
the other required parameters to value an option.AmericanOptionImpliedVolatility.default(type, value, underlying, strike,
dividendYield, riskFreeRate, maturity, volatility,
timeSteps=150, gridPoints=151)## S3 method for class 'ImpliedVolatility':
printundefined
## S3 method for class 'ImpliedVolatility':
summaryundefined
call
, put
or
straddle
AmericanOptionImpliedVolatility
function returns an object
of class ImpliedVolatility
. It contains a list with the
following elements: Please see any decent Finance textbook for background reading, and the
QuantLib
documentation for details on the QuantLib
implementation.
QuantLib
.EuropeanOption
,AmericanOption
,BinaryOption
AmericanOptionImpliedVolatility("call", value=11.10, strike=100, 100,
0.01, 0.03, 0.5, 0.4)
Run the code above in your browser using DataLab