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

MultiAssetOption greeks are scalar #65

Closed
paveldiko opened this issue Nov 27, 2015 · 1 comment
Closed

MultiAssetOption greeks are scalar #65

paveldiko opened this issue Nov 27, 2015 · 1 comment

Comments

@paveldiko
Copy link

I am writing an instrument derived from MultiAssetOption class. The problem I have is that the greeks are declared as scalars in the MultiAssetOption while I need them to all the underlyings. Any suggestions on how to allow them to be vectors in my subclass - apart from effectively overriding entire MultiAssetOption class?

@amaggiulli
Copy link
Owner

Override class Results in your derived class :
new public class Results : Instrument.Results
also override fetch results :
public override void fetchResults(IPricingEngineResults r)

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

No branches or pull requests

2 participants