Examples of Exercise


Examples of org.jquantlib.exercise.Exercise

        for (final Type type : types) {
            for (final double strike : strikes) {
                for (final int year : years) {

                    final Date exDate = today.add(new Period(year, TimeUnit.Years));
                    final Exercise exercise = new AmericanExercise(today, exDate);
                    final StrikedTypePayoff payoff = new PlainVanillaPayoff(type, strike);

                    final BlackScholesMertonProcess stochProcess = new BlackScholesMertonProcess(
                            new Handle<Quote>(spot),
                            new Handle<YieldTermStructure>(qTS),
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.