|
From: Luigi B. <lui...@gm...> - 2015-11-03 16:26:51
|
In the test suite, https://github.com/lballabio/quantlib/blob/master/QuantLib/test-suite/dividendoption.cpp#L677 The lines from 694 to 725 initialize the option and its market data. Those from 741 to 757 calculates the value and the greeks, and compares the available greeks with those calculated by bumping the data (e.g., to calculate the delta modify thevalue of the underlying, recalculate, and see how much the value has changed; the same approach can be used for all the other greeks). For an American option, you'll need to specify an American exercise: see line 827. Luigi On Tue, Nov 3, 2015 at 11:32 AM jamesquant <jam...@ho...> wrote: > Hi. Do you have an example of how to do this? > > > > -- > View this message in context: > http://quantlib.10058.n7.nabble.com/Binomial-American-Options-with-Discrete-Dividends-Greeks-tp17012p17017.html > Sent from the quantlib-dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > QuantLib-dev mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > -- <http://leanpub.com/implementingquantlib> <http://implementingquantlib.com> <http://twitter.com/lballabio> |