|
From: Luigi B. <lui...@gm...> - 2007-11-27 14:24:03
|
On Tue, 2007-11-27 at 13:40 +0100, "Frank H=C3=B6vermann" wrote: > Hi there! > What is the most general way to calculate (partial) greeks for a > MultiAssetOption or a BasketOption? Does anyone ever had the chance to > implement something like this? E.g., in the case of delta at least I > am not able move the spot of the underlying StochasticProcess within > the option's class. Any hints are more than welcome. You have to move the spot from outside the class. See for instance EuropeanOption::testGreeks() in test-suite/europeanoption.cpp; you can look at the part where the "expected" map is filled. This said, as Simon mentioned, you'll have to be careful of numerical artifacts in the results if you're using Monte Carlo. Luigi --=20 Harrison's Postulate:=20 For every action, there is an equal and opposite criticism.=20 |