Skip to content

Add grandchild examples to OCO and OUO orders - #2719

Merged
AlexCatarino merged 1 commit into
QuantConnect:masterfrom
AlexCatarino:feature-9828-oco-ouo-grandchild
Sep 25, 2026
Merged

AlexCatarino merged 1 commit into
QuantConnect:masterfrom
AlexCatarino:feature-9828-oco-ouo-grandchild

Conversation

@AlexCatarino

Copy link
Copy Markdown
Member

Bracket and OTO already have grandchild examples. This adds them to One Cancels Other and One Updates Other: the Place Related Orders sections name grandchildren, and each page gets an Example 2.

  • OCO: the take profit triggers a buy-back bracket, whose exit orders are grandchildren of the take profit.
  • OUO: the stop loss triggers a short-entry bracket that reverses the position.

The examples use the order factory from QuantConnect/Lean#9828, so they aren't marked testable yet.

Test plan

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@AlexCatarino
AlexCatarino merged commit d38a69a into QuantConnect:master Sep 25, 2026
@AlexCatarino
AlexCatarino deleted the feature-9828-oco-ouo-grandchild branch September 25, 2026 13:46
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.

1 participant