Concept
Order Constructs
Order Constructs, also known as OCO, bracket, trailing-stop order, are Risk, Sizing & Exits concepts. The Library holds 1 implementation, a working definition you can pull into Quant.
Top Order Constructs indicator
The top custom implementation, built on the original standard Order Constructs formula.
1 total
From studying Order Constructs to trading it: take the implementation below into Quant and backtest it instantly.
What are Order Constructs?
Order constructs are composite orders: arrangements of two or more basic order types linked by management logic. The workhorses are OCO (one-cancels-the-other, two resting orders linked so the first fill cancels the sibling), the bracket (an entry that, once filled, automatically places a stop loss and a profit target as an OCO pair), and the trailing-stop order (a stop whose trigger ratchets along with favorable price movement at a fixed distance).
OCO predates electronic trading: it began as a contingent instruction left with a broker, who canceled the surviving order when its sibling filled. Electronic platforms encoded that linkage into the venue itself, and OCO and bracket functionality is now standard across futures, forex, stock, and crypto platforms, though the names vary (bracket, OTOCO, attached orders) and, more importantly, so does where the logic runs.
Their value is that the exit plan can live at the broker or exchange rather than in the trader's attention span: once a bracket is working server-side, the position stays protected even if the platform is closed. That matters most for rule-based trading, because loss-control rules only bind if the stop actually exists in the market; a bracket makes its existence automatic instead of a decision revisited under stress.
The caveat is that implementations differ by venue. Some constructs are native to the exchange matching engine, others are simulated client-side or by an execution bridge; partial fills, gaps through stop prices, and whether a trailing offset updates server-side all vary, so the construct's fine print is part of the risk plan.
How to set up a bracket order
Constructs are execution plumbing rather than a chart pattern, so the practical skill is configuring one correctly rather than spotting it on a chart.
- 1Define the risk unit first: pick the stop location, whether a structure stop beyond the invalidating swing or a volatility stop at a multiple of average true range.
- 2Size the position from that stop distance so the loss at the stop equals the planned fraction of equity, per fixed fractional sizing or whichever sizing basis the plan uses.
- 3Enter the bracket as one ticket: entry plus attached stop and profit target, expressed as absolute prices or as offsets from the fill.
- 4Confirm the linkage settings: the stop and target must be OCO-linked, and quantity adjustments on partial fills should propagate to both legs.
- 5Check where each leg lives. A venue-native bracket keeps working when your platform disconnects; a locally simulated one does not, which changes what a hard stop actually protects against.
How traders use it
- As brackets on entry: every fill is born with a linked stop and target, sized so the stop distance equals one R in the plan's R-multiple framework, and the OCO linkage cancels the remaining leg when one side fills.
- In webhook automation: strategy alerts fire into an execution bridge that translates each signal into a bracket or OCO at the venue, so automated systems get exchange-side protection instead of depending on the next alert arriving.
- As server-side trailing: a trailing-stop order implements the simplest trailing method (a fixed offset) without indicator logic; systems that trail on structure or volatility instead recompute the level and amend a plain stop order.
- For staged exits: scaling out becomes multiple target legs, each OCO-linked to the shared stop, often with the stop moved to breakeven once the first target fills; the profit target taxonomy covers how the target prices are chosen.
- When pyramiding: each add-on entry carries its own bracket, or the position's single stop is amended as units are added, so the combined position never sits without a resting exit.
Order Constructs vs related building blocks
Order Types: Order types are the atoms: market, limit, stop, stop-limit, each a single instruction. Order constructs are molecules, two or more of those atoms linked by cancel-and-replace logic. A venue can only offer constructs built from the types it supports.
Trailing Method Taxonomy: The trailing-stop order is one entry in the broader taxonomy of trailing methods: a fixed-distance ratchet the venue can run by itself. Methods that trail structure, moving averages, or volatility bands need indicator logic, so they are implemented by amending a plain stop rather than by a native order.
Fixed Stops: A fixed stop is a placement decision: where the exit belongs and that it stays put. A bracket is the delivery mechanism that makes sure the stop exists from the moment of fill. One answers where, the other answers how it gets into the market.
Concept family
Risk, Sizing & Exits
37 concepts mapped · 37 in the Library
Order Constructs FAQ
Turn Order Constructs into a trading strategy.
Take the implementation from this page into Quant, then build on it, backtest it on real data, and keep refining it in conversation.
