On Thu, 2010-12-02 at 15:22 +0100,
[hidden email] wrote:
> I would like to know if there is any example which performs the greeks
> computation for equity basket such as himalaya or everest...
No, I don't think so. But the idea is the same used in a few cases in
the test suite (such as EuropeanOptionTest::testGreeks() in
<test-suite/europeanoption.cpp>; look for "// perturb spot and get delta
and gamma" in the source.) You can change the values inside the passed
quotes and calculate numerical derivatives.
Luigi
--
Everything that can be invented has been invented.
-- Charles Duell, Director of U.S. Patent Office, 1899
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users