-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MCDigitalOption pricer not working #2044
Comments
Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it. |
Hi—may you post some code to reproduce the problem? Thanks! |
Sure! Here is my function call parameter list
and my function:
This will help you see the problem for different discounting with time steps |
for reproducing the sharp change issue, please use this. You will get these premium values for each underlying price
|
I have found the problem with the discounting. I had not set the flag for |
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks. |
Sorry for the long silence. What do you mean by "sharp" change? Do you think it drops too much? A value of 0.62 when the underlying is 90 means that the probability to touch the barrier at 100 within one year is around 62%, which looks more or less correct given your data and, for instance, the formulas at https://quant.stackexchange.com/questions/235. If, instead, you mean that there's a discontinuity because it is flat above the strike and decreasing below the strike, that's because above the strike the option is exercised immediately for a constant payoff. I might have misinterpreted you, though, so let me know if I'm answering the wrong question. |
I have 2 issues I am running into while using the example of MC pricing from test suite for binary call/put options.
Any help or insight is appreciated, thanks.
The text was updated successfully, but these errors were encountered: