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

Expired Index Option Contracts Aren't Always Exercised #8413

Open
4 tasks done
DerekMelchin opened this issue Nov 15, 2024 · 1 comment
Open
4 tasks done

Expired Index Option Contracts Aren't Always Exercised #8413

DerekMelchin opened this issue Nov 15, 2024 · 1 comment
Labels

Comments

@DerekMelchin
Copy link
Collaborator

Expected Behavior

If we hold an Index Option contract and it expires, it's automatically exercised.

Actual Behavior

It's not always exercised.

Potential Solution

N/A

Reproducing the Problem

Run this backtest. The algorithm runs until 2024, but this last 0DTE contract isn't automatically exercised on expiry like all the other trades in the backtest.
image

System Information

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
@AlexCatarino
Copy link
Member

Note the 0DTE contract expires on July 3rd (holiday eve).
If we set the start date to 2024, it stops trading on Jun 18th (eve of Juneteenth).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants