Skip to content
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

Fix makes sure that NaNs, Infs from QLNet don't disrupt our calculati… #707

Merged

Conversation

quant1729
Copy link
Contributor

…ons.

Cosmetic fix in IQFeed test.

@quant1729
Copy link
Contributor Author

I think ideally this should be solved using a sum type one level higher in Greeks/Results classes. So I thought about adding a flag "IsReady" confirming that computations were successful, and if yes, then deliver all numbers. As for QLNet, they port/copy from QuantLib trying to minimize new bugs from porting. As a result of this, NPV is double(not decimal) and there are no safe functions in entire library to check if values were produced. We catch exceptions. In C++ it was ok, in C# this is bad. Will suggest QLNet authors to change this pattern.

@jaredbroad jaredbroad merged commit 3e3cf7d into QuantConnect:master Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants