BinaryOptionImpliedVolatility
function solves for the
(unobservable) implied volatility, given an option price as well as
the other required parameters to value an option.## S3 method for class 'default':
BinaryOptionImpliedVolatility(type, value, underlying,
strike, dividendYield, riskFreeRate, maturity, volatility,
cashPayoff=1)## S3 method for class 'ImpliedVolatility':
printundefined
## S3 method for class 'ImpliedVolatility':
summaryundefined
call
, put
or
straddle
BinaryOptionImpliedVolatility
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
BinaryOptionImpliedVolatility("call", value=4.50, strike=100, 100, 0.02, 0.03, 0.5, 0.4, 10)
Run the code above in your browser using DataLab