Examples of impliedVolatility()


Examples of com.opengamma.analytics.financial.model.option.pricing.analytic.BjerksundStenslandModel.impliedVolatility()

            if (quoteTypeIsCallPutStrike) {
              optionIsCall = strike > callAboveStrike ? true : false;
            }
            final double vol;
            if (isAmerican) {
              vol = americanModel.impliedVolatility(price, spot, strike, -Math.log(zerobond) / t, Math.log(forward / spot) / t, t, optionIsCall);
            } else {
              final double fwdPrice = price / zerobond;
              vol = BlackFormulaRepository.impliedVolatility(fwdPrice, forward, strike, t, optionIsCall);
            }
            tList.add(t);
View Full Code Here

Examples of org.jquantlib.helpers.FDAmericanDividendOptionHelper.impliedVolatility()

        final double vega  = option.vega();
        final double rho   = option.rho();

        // market price: simply guess something 10% higher than theoretical
        //FIXME
        final double ivol = option.impliedVolatility(value*1.10);

        if (!quiet) {
            QL.info(String.format("value       = %13.9f", value));
            QL.info(String.format("delta       = %13.9f", delta));
            QL.info(String.format("gamma       = %13.9f", gamma));
View Full Code Here

Examples of org.jquantlib.helpers.FDEuropeanDividendOptionHelper.impliedVolatility()

        final double vega   = option.vega();
        final double rho    = option.rho();

        // market price: simply guess something 10% higher than theoretical
        //FIXME
        final double ivol = option.impliedVolatility(value*1.10);

        if (!quiet) {
            QL.info(String.format("value       = %13.9f", value));
            QL.info(String.format("delta       = %13.9f", delta));
            QL.info(String.format("gamma       = %13.9f", gamma));
View Full Code Here

Examples of org.jquantlib.instruments.VanillaOption.impliedVolatility()

                                            // flat price vs vol --- pointless (and
                                            // numerically unstable) to solve
                                            continue;
                                        }

                                        implVol = option.impliedVolatility(value, process, tolerance, maxEvaluations);

                                        if (Math.abs(implVol-v) > tolerance) {
                                            // the difference might not matter
                                            vol.setValue(implVol);
                                            final double value2 = option.NPV();
View Full Code Here

Examples of org.jquantlib.instruments.VanillaOption.impliedVolatility()

                                            // flat price vs vol --- pointless (and
                                            // numerically unstable) to solve
                                            continue;
                                        }

                                        implVol = option.impliedVolatility(value, process, tolerance, maxEvaluations);

                                        if (Math.abs(implVol-v) > tolerance) {
                                            // the difference might not matter
                                            vol.setValue(implVol);
                                            final double value2 = option.NPV();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.