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

Greeks indicators should be able to calculate on expiration date #8461

Closed
4 tasks done
jhonabreul opened this issue Dec 12, 2024 · 0 comments · Fixed by #8465
Closed
4 tasks done

Greeks indicators should be able to calculate on expiration date #8461

jhonabreul opened this issue Dec 12, 2024 · 0 comments · Fixed by #8465
Assignees

Comments

@jhonabreul
Copy link
Collaborator

Expected Behavior

Greeks indicators are able to calculate on expiration date. Options are not delisted right at midnight, so they still could have greeks on that date.

Actual Behavior

Some greeks indicators throw when calculating on expiration date when they use timeTillExpiry as the denominator of a division.

Potential Solution

Check each indicator and see if they can have actual values on expiration date. At least they could detect timeTillExpiry == 0 and return an invalid value if necessary.

The OptionGreeksIndicatorBase class allows calculation on expiration date but some of the actual derived class don't do any checking on this.

Reproducing the Problem

Clone this backtest

System Information

Windows 11
QC Cloud

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants