[ quantlib-Bugs-3598835 ] RQuantLib EuropeanOption with Expiry = 0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-3598835 ] RQuantLib EuropeanOption with Expiry = 0

SourceForge.net
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

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev