Skip to content

Add Place Related Orders to contingent order types - #2716

Merged
AlexCatarino merged 1 commit into
QuantConnect:masterfrom
AlexCatarino:feature-9828-bracket-exit-triggers
Sep 25, 2026
Merged

AlexCatarino merged 1 commit into
QuantConnect:masterfrom
AlexCatarino:feature-9828-bracket-exit-triggers

Conversation

@AlexCatarino

@AlexCatarino AlexCatarino commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Every contingency type can trigger follow-up orders, so each type page gets a Place Related Orders section after Place Orders:

  • Bracket Orders: the built-in exits can't trigger orders, so the section builds the bracket from order factory parts, with a take profit that triggers a re-entry (a grandchild of the entry).
  • One Triggers Other Orders: the chain and grandchild content moves here from Place Orders.
  • One Cancels Other Orders: two breakout entries that cancel each other, each with its own bracket.
  • One Updates Other Orders: a stop loss that triggers a reversal.

The later sections move from 03-08 to 04-09. Nothing linked to their anchors. Custom Contingent Orders › Relate Order Requests gets an Examples column that links each method to the matching section. Bracket Orders also gets Example 2, where the take profit triggers a re-entry.

The new code uses the order factory from QuantConnect/Lean#9828, so the example isn't marked testable yet.

Test plan

@AlexCatarino AlexCatarino changed the title Show bracket exits that trigger other orders Add Place Related Orders to contingent order types Sep 25, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@AlexCatarino
AlexCatarino force-pushed the feature-9828-bracket-exit-triggers branch from d56034e to 04a4e25 Compare September 25, 2026 12:52
@AlexCatarino
AlexCatarino merged commit fea2585 into QuantConnect:master Sep 25, 2026
@AlexCatarino
AlexCatarino deleted the feature-9828-bracket-exit-triggers branch September 25, 2026 12:53
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