1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
\name{BinaryOptionImpliedVolatility}
\alias{BinaryOptionImpliedVolatility}
\alias{BinaryOptionImpliedVolatility.default}
\title{Implied Volatility calculation for Binary Option}
\description{
The \code{BinaryOptionImpliedVolatility} function solves for the
(unobservable) implied volatility, given an option price as well as
the other required parameters to value an option.}
\usage{
\method{BinaryOptionImpliedVolatility}{default}(type, value, underlying,
strike, dividendYield, riskFreeRate, maturity, volatility,
cashPayoff=1)
}
\arguments{
\item{type}{A string with one of the values \code{call}, \code{put} or
\code{straddle}}
\item{value}{Value of the option (used only for ImpliedVolatility calculation)}
\item{underlying}{Current price of the underlying stock}
\item{strike}{Strike price of the option}
\item{dividendYield}{Continuous dividend yield (as a fraction) of the stock}
\item{riskFreeRate}{Risk-free rate}
\item{maturity}{Time to maturity (in fractional years)}
\item{volatility}{Initial guess for the volatility of the underlying
stock}
\item{cashPayoff}{Binary payout if options is exercised, default is 1}
}
\value{
The \code{BinaryOptionImpliedVolatility} function returns an numeric
variable with volatility implied by the given market prices.
}
\details{
The Finite Differences method is used to value the Binary Option.
Implied volatilities are then calculated numerically.
Please see any decent Finance textbook for background reading, and the
\code{QuantLib} documentation for details on the \code{QuantLib}
implementation.
}
\references{\url{https://www.quantlib.org/} for details on \code{QuantLib}.}
\author{Dirk Eddelbuettel \email{edd@debian.org} for the \R interface;
the QuantLib Group for \code{QuantLib}}
\note{The interface might change in future release as \code{QuantLib}
stabilises its own API.}
\seealso{\code{\link{EuropeanOption}},\code{\link{AmericanOption}},\code{\link{BinaryOption}}}
\examples{
BinaryOptionImpliedVolatility("call", value=4.50, strike=100, 100, 0.02, 0.03, 0.5, 0.4, 10)
}
\keyword{misc}
|