BlackScholesImpliedVolatility Method
|
Computes implied underlying asset volatility.
Namespace:
FinMath.Derivatives
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public static double ImpliedVolatility(
double stockPrice,
double strikePrice,
double riskFreeRate,
double annualDividendYield,
double timeToMaturity,
OptionType optionType,
double optionPrice
)
Parameters
- stockPrice
- Type: SystemDouble
Stock price of the underlying asset. - strikePrice
- Type: SystemDouble
Strike price of the undelying asset. - riskFreeRate
- Type: SystemDouble
Risk-free interest rate. - annualDividendYield
- Type: SystemDouble
Annual dividend yield of the underlying asset. - timeToMaturity
- Type: SystemDouble
Time to the expiration date. - optionType
- Type: FinMath.DerivativesOptionType
Type of option (call/put). - optionPrice
- Type: SystemDouble
Option price.
Return Value
Type:
DoubleImplied volatility.
See Also