|
From: SourceForge.net <no...@so...> - 2012-12-29 07:59:32
|
Bugs item #3598835, was opened at 2012-12-28 23:59 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3598835&group_id=12740 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: RQuantLib EuropeanOption with Expiry = 0 Initial Comment: Hi, This is an error I have come across in the R version of QuantLib (RQuantLib). I emailed Dirk Eddelbuettel and he tells me it is an issue he cannot fix and I should submit a bug report. The error is this: I have been using your RQuantLib package to price options and I noticed a bug when pricing an option with time to expiry = 0. An option with spot price at 80, strike price of 100 and time to expiry of 1 day correctly returns a price of 20: > EuropeanOption("put", 80, 100, 0, 0, 1/252, .3)$value [1] 20 But if the option now has 0 time to expiry, it returns 0: > EuropeanOption("put", 80, 100, 0, 0, 0/252, .3)$value [1] 0 I think it should return the intrinsic value of 20 instead of 0. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3598835&group_id=12740 |