Package org.jquantlib.helpers

Examples of org.jquantlib.helpers.FDEuropeanDividendOptionHelper


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

        new Settings().setEvaluationDate(today);

        final FDEuropeanDividendOptionHelper option = new FDEuropeanDividendOptionHelper(
                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

Related Classes of org.jquantlib.helpers.FDEuropeanDividendOptionHelper

Copyright © 2018 www.massapicom. 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.