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

Option Strategy: Jelly Roll & Ladder #8092

Merged
merged 18 commits into from
Jun 27, 2024
Merged

Option Strategy: Jelly Roll & Ladder #8092

merged 18 commits into from
Jun 27, 2024

Conversation

LouisSzeto
Copy link
Collaborator

@LouisSzeto LouisSzeto commented Jun 17, 2024

Description

Add new abstraction helper method and universe filter for option strategy Long/Short Jelly Roll, Bear/Bull Call/Put Ladder

Definition:

margin requirement from IB:

  • Long Jelly Roll
    Screenshot 2024-06-14 163231

  • Short Jelly Roll
    Screenshot 2024-06-14 163428

  • Bear Call Ladder
    bear-call-ladder

  • Bear Put Ladder
    bear-put-ladder

  • Bull Call Ladder
    bull-call-ladder

  • Bull Put Ladder
    bull-put-ladder

Related Issue

Motivation and Context

no helper method for them

Requires Documentation Change

Add new section in Option Strategy

How Has This Been Tested?

  • unit tests
  • regression tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance. Please add associated performance test and results)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

@LouisSzeto LouisSzeto changed the title Option Strategy: Jelly Roll Option Strategy: Jelly Roll & Ladder Jun 20, 2024
Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Leaving a few requests 👍

@Martin-Molinero
Copy link
Member

Mind sharing where the option strategy definitions were sourced from, given they are not in the core IB list

@Martin-Molinero
Copy link
Member

Please rebase from master, the regression test interface was changed & a unit test CI bug was shipped

@LouisSzeto
Copy link
Collaborator Author

Mind sharing where the option strategy definitions were sourced from, given they are not in the core IB list

I've updated the description now 😄

Common/Securities/Option/OptionFilterUniverse.cs Outdated Show resolved Hide resolved
Common/Securities/Option/OptionStrategies.cs Show resolved Hide resolved
/// </summary>
/// <param name="canonicalOption">Option symbol</param>
/// <param name="higherStrike">The strike price of the long put</param>
/// <param name="middleStrike">The strike price of the short put with higher strike price</param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs are off, same for the rest, please re review all 🙏

LouisSzeto and others added 3 commits June 27, 2024 20:32
The "middle strike" instead of "with higher/lower" to match the parameter description with name.
Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@Martin-Molinero Martin-Molinero merged commit aae6d61 into QuantConnect:master Jun 27, 2024
7 checks passed
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.

3 participants