Examples of CRRAmericanDividendOptionHelper


Examples of org.jquantlib.helpers.CRRAmericanDividendOptionHelper

            QL.info("::::: " + this.getClass().getSimpleName() + " ::::: American Dividend Option :::::");
        }

        new Settings().setEvaluationDate(today);

        final CRRAmericanDividendOptionHelper option = new CRRAmericanDividendOptionHelper(
                type, underlying, strike, riskFreeRate, dividendYield, volatility,
                settlementDate, maturityDate,
                divDates, divAmounts,
                calendar, dc);

        final double value = option.NPV();
        final double delta = option.delta();
        final double gamma = option.gamma();
        final double theta = option.theta();
        final double vega  = option.vega(); //TODO
        final double rho   = option.rho()//TODO

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

        if (!quiet) {
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.