Examples of FDAmericanDividendOptionHelper


Examples of org.jquantlib.helpers.FDAmericanDividendOptionHelper

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

        new Settings().setEvaluationDate(today);

        final FDAmericanDividendOptionHelper option = new FDAmericanDividendOptionHelper(
                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();
        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
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.