Closed akasolace closed 8 years ago
Unfortunately, the actual/365 day counter can't give you t=0.5.
With act/360 and expiryDate = calculation_date + int(360 * t + 0.5)
, you're adding 180 days and getting t = 180/360 = 0.5.
With act/365, you're adding 183 days — because that's what int(365 * t + 0.5)
gives you — and getting back t=183/365 = 0.50137 in the formula.
Long story short, if you want to reproduce textbook examples, I suggest you stick with act/360 (which, I suspect, was introduced precisely because 360 is exactly divisible by 2, 3, 4, 6, 12...)
thank you for the answer.
When running the unit test for Stulz engine, I noticed that option value was different if I was using ACT360 instead of ACT365fixed despite the fact that option maturity is expressed in years. Here below is an example with Quantlib-Python based on the unit test.
Thank you in advance for your help