QuantLib American Option Query

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

QuantLib American Option Query

Manoj-16
Hi ,
I am new to QuantLib library. When we try to calculate the American Option Greeks with AnalyticalDigitalAmericanEngine, it returns some unacceptable values as option price and option greeks. Here is the details.
 
Active Test Case No = 1
Using 0.3.7-debug
option type = call
 underlying 90
 strike 100
 dividendYield 0.1
 riskFreeRate 0.1
 volatility 0.15
 todaysDate 12/09/2004 
 settlementDate 12/14/2004    // Plan to settle
 exerciseDate 01/15/2005       //Date of Expiry
Time to maturity  0.0876712
OptionType  Call
EngineType  Call American //AnalyticalDigitalAmericanEngine
Calculated Opt Price  -1.54148e+060
Calculated Opt Delta  -1.05275e+060
Calculated Opt Gamma  -6.19998e+059
Calculated Opt Rho  -7.16467e+060
Expected results = 0.0206
 Greek cal failed within 2 decimal accuracy
 calculatedOption price -1.54148e+060
 with a variation of 1.54148e+060
 Accepted Tolerance Set +/-  0.05
************************************************
 
All other Pricing Engines returns Option Price properly but does not return option greeks values.
In case of European Options both option price calculation and Option Greeks calculation is working properly.
Could anyone help me, how to proceed in calculating American Option Greeks with QuantLib library.
 
Thanks in advance
 
Manoj 
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib American Option Query

Luigi Ballabio-2
On 2004.12.09 08:20, Manoj wrote:

> When we try to calculate the American Option Greeks with  
> AnalyticalDigitalAmericanEngine, it returns some unacceptable values as  
> option price and option greeks. Here is the details.
>
> Active Test Case No = 1
> Using 0.3.7-debug
> option type = call
>  underlying 90
>  strike 100
>  dividendYield 0.1
>  riskFreeRate 0.1
>  volatility 0.15
>  todaysDate 12/09/2004
>  settlementDate 12/14/2004    // Plan to settle
>  exerciseDate 01/15/2005       //Date of Expiry
> Time to maturity  0.0876712
> OptionType  Call
> EngineType  Call American //AnalyticalDigitalAmericanEngine
> Calculated Opt Price  -1.54148e+060
> Calculated Opt Delta  -1.05275e+060
> Calculated Opt Gamma  -6.19998e+059
> Calculated Opt Rho  -7.16467e+060

Manoj,
        I apologize for the delay. Can you send me some code reproducing  
the above results? I'll try and have a look at it.

Later,
        Luigi